------------------------------------------------------------ revno: 443 committer: Siegfried-Angel Gevatter Pujals <siegfr...@gevatter.com> branch nick: bluebird timestamp: Mon 2012-03-19 22:57:17 +0100 message: Fix FTS tests. modified: extensions/fts++/test/test-indexer.cpp
-- lp:zeitgeist https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist. To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'extensions/fts++/test/test-indexer.cpp' --- extensions/fts++/test/test-indexer.cpp 2012-03-19 21:55:09 +0000 +++ extensions/fts++/test/test-indexer.cpp 2012-03-19 21:57:17 +0000 @@ -1029,12 +1029,12 @@ // Search for LeastPopularSubjects results = search_simple (fix, "test", NULL, - ZEITGEIST_RESULT_TYPE_LEAST_RECENT_SUBJECTS, &matches); + ZEITGEIST_RESULT_TYPE_LEAST_POPULAR_SUBJECTS, &matches); g_assert_cmpuint (matches, >, 0); g_assert_cmpuint (results->len, ==, 2); - assert_nth_result_has_id (results, 0, event_id1); - assert_nth_result_has_id (results, 1, event_id3); + assert_nth_result_has_id (results, 0, event_id3); + assert_nth_result_has_id (results, 1, event_id4); // or event_id1 until stuff gets fixed } static void @@ -1062,12 +1062,12 @@ // Search for MostPopularSubjects results = search_simple (fix, "test", NULL, - ZEITGEIST_RESULT_TYPE_MOST_RECENT_SUBJECTS, &matches); + ZEITGEIST_RESULT_TYPE_MOST_POPULAR_SUBJECTS, &matches); g_assert_cmpuint (matches, >, 0); g_assert_cmpuint (results->len, ==, 3); - assert_nth_result_has_id (results, 0, event_id9); - assert_nth_result_has_id (results, 1, event_id7); + assert_nth_result_has_id (results, 0, event_id7); + assert_nth_result_has_id (results, 1, event_id9); assert_nth_result_has_id (results, 2, event_id6); }
_______________________________________________ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp