Skip to content

Commit

Permalink
Update unit tests to reflect anchoring
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm committed Apr 7, 2021
1 parent 1c38632 commit b166aca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/suggestion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ namespace {
std::vector<std::string> resultSet = getSuggestions(archive, "berlin", archive.getEntryCount());
std::vector<std::string> expectedResult = {
"berlin",
"berlin wall",
"hotel berlin, berlin",
"again berlin",
"berlin wall",
"not berlin"
};

Expand Down Expand Up @@ -252,11 +252,11 @@ namespace {
resultSet = getSuggestions(archive, "the", archive.getEntryCount());
expectedResult = {
"The chocolate factory",
"Hour of the wolf",
"The wolf among sheeps",
"The wolf of Shingashina",
"The wolf of Wall Street",
"The wolf of Wall Street Book",
"Hour of the wolf",
"Terma termb the wolf of wall street termc"
};

Expand All @@ -265,11 +265,11 @@ namespace {
// "the wolf"
resultSet = getSuggestions(archive, "the wolf", archive.getEntryCount());
expectedResult = {
"Hour of the wolf",
"The wolf among sheeps",
"The wolf of Shingashina",
"The wolf of Wall Street",
"The wolf of Wall Street Book",
"Hour of the wolf",
"Terma termb the wolf of wall street termc"
};

Expand Down Expand Up @@ -431,9 +431,9 @@ namespace {

std::vector<std::string> resultSet = getSuggestions(archive, "This is a title", archive.getEntryCount());
std::vector<std::string> expectedResult = {
"this is a title aterm bterm cterm",
"aterm bterm this is a title cterm",
"aterm this is a title bterm cterm",
"this is a title aterm bterm cterm"
"aterm this is a title bterm cterm"
};

ASSERT_EQ(expectedResult, resultSet);
Expand Down

0 comments on commit b166aca

Please sign in to comment.