Hello guys. Olly had pointed out on IRC that there is no test for using the TradWeight scheme with a Rset and had directed me to the test coverage of the TradWeight scheme :-<br><br><a href="http://lcov.xapian.org/latest/weight/tradweight.cc.gcov.html">http://lcov.xapian.org/latest/weight/tradweight.cc.gcov.html</a><br>
<br>I have added a test to api_anydb.cc which tests the TradWeight scheme using an Rset . I simply modified the rset2 test in api_anydb.cc so that the Mset is made using the TradWeight scheme and passed an Rset to Enquire.get_mset( ) .<br>
<br><a href="http://xapian.org/docs/sourcedoc/html/api__anydb_8cc_source.html#l01128">http://xapian.org/docs/sourcedoc/html/api__anydb_8cc_source.html#l01128</a><br><br>The results were as expected and the test passed on all the backends . I then changed the order of the documents in the second call to mset_expected_order( ) and as expected, the test failed.So,I think that the test works fine.Should I send a pull request for this test ? If I need to make any changes to ensure that this test is correct, please do let me know .<br>
<br>-Regards<br>-Aarsh<br>