On Oct 16, 2006, at 4:00 AM, David Balmain wrote: > The C unit tests probably > won't pass so if you can fix them the problem should be fixed.
Test output for subversion repository revision 653 on my G4 PowerBook below... I don't see anything failing specifically relating to how Similarity encodes/decodes norms. Is there a test for that? Have a look at... <http://www.rectangular.com/svn/kinosearch/trunk/t/504-similarity.t> The important test is the one that just takes 0 .. 255, transforms those to 256 floats, transforms them back again and checks that we get 0 .. 255. You have something like that? /me investigates ... Ah, don't see something like that in test_similarity.c Probably I can add that and send you a patch. Think that's the right direction, based on the test results? PS: I have a Mac Mini that just sits there as a backup in case the PowerBook has to go into the shop. If you write a script that emails you results in case of test failures, I can set up a cron to do nightly smokes. Marvin Humphrey Rectangular Research http://www.rectangular.com/ slothbear:~/projects/ferret010/ruby marvin$ ruby setup.rb test Running tests... Loading once Loaded suite test Started ........................................................................ ...........................................FF.............F............. ............... Finished in 8.037183 seconds. 1) Failure: test_sorts(SearchAndSortTest) [./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_search_and_sort.rb:40:in `do_test_top_docs' ./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_search_and_sort.rb:39:in `times' ./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_search_and_sort.rb:39:in `do_test_top_docs' ./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_search_and_sort.rb:113:in `test_sorts']: <8> expected but was <1>. 2) Failure: test_boolean_query(SearcherTest) [./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_index_searcher.rb:39:in `check_hits' ./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tm_searcher.rb:98:in `test_boolean_query']: <14> expected but was <2>. 3) Failure: test_boolean_query(SimpleMultiSearcherTest) [./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tc_index_searcher.rb:39:in `check_hits' ./test/unit/../unit/analysis/../../unit/index/../../unit/ query_parser/../../unit/search/tm_searcher.rb:98:in `test_boolean_query']: <14> expected but was <2>. 159 tests, 11469 assertions, 3 failures, 0 errors slothbear:~/projects/ferret010/ruby marvin$ _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

