summaryrefslogtreecommitdiff
path: root/extensions/fts++/test/test-indexer.cpp
diff options
context:
space:
mode:
authorSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-03-19 22:57:17 +0100
committerSiegfried-Angel Gevatter Pujals <siegfried@gevatter.com>2012-03-19 22:57:17 +0100
commit983c56cd6675783ec7d50ce5b37ab5a1f3fd7890 (patch)
treee7b2ac30696363686e07e0ab236e0ccbe731ccf5 /extensions/fts++/test/test-indexer.cpp
parent3d626b441c29be80ab13c54412479584a5b8c326 (diff)
downloadzeitgeist-983c56cd6675783ec7d50ce5b37ab5a1f3fd7890.tar.gz
Fix FTS tests.
Diffstat (limited to 'extensions/fts++/test/test-indexer.cpp')
-rw-r--r--extensions/fts++/test/test-indexer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/fts++/test/test-indexer.cpp b/extensions/fts++/test/test-indexer.cpp
index 3f9dacb7..f3cd48e3 100644
--- a/extensions/fts++/test/test-indexer.cpp
+++ b/extensions/fts++/test/test-indexer.cpp
@@ -1029,12 +1029,12 @@ test_query_with_duplicates (Fixture *fix, gconstpointer data)
// 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 @@ test_query_most_popular_subjects (Fixture *fix, gconstpointer data)
// 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);
}