test: fixed tests

This commit is contained in:
Eberhard Graether
2015-10-02 18:21:00 +02:00
parent acfbe510fb
commit f041e69789
2 changed files with 6 additions and 86 deletions
+4 -4
View File
@@ -174,14 +174,14 @@ public:
std::vector<SearchMatch> matches = index.runFuzzySearchAndGetMatches("t");
TS_ASSERT_EQUALS(2, matches.size());
TS_ASSERT_EQUALS("MATH", matches[0].fullName);
TS_ASSERT_EQUALS("util", matches[1].fullName);
TS_ASSERT_EQUALS("util", matches[0].fullName);
TS_ASSERT_EQUALS("MATH", matches[1].fullName);
matches = index.runFuzzySearchAndGetMatches("T");
TS_ASSERT_EQUALS(2, matches.size());
TS_ASSERT_EQUALS("MATH", matches[0].fullName);
TS_ASSERT_EQUALS("util", matches[1].fullName);
TS_ASSERT_EQUALS("util", matches[0].fullName);
TS_ASSERT_EQUALS("MATH", matches[1].fullName);
}
void test_fuzzy_matching_wheighs_by_distance_and_alphabet()