LibraryTest.filterByCategory

This commit is contained in:
Veloman Yunkan 2021-04-11 23:45:40 +04:00
parent cdd272fc5a
commit 95c354a5fa
1 changed files with 8 additions and 0 deletions

View File

@ -488,6 +488,14 @@ TEST_F(LibraryTest, filterByName)
);
}
TEST_F(LibraryTest, filterByCategory)
{
EXPECT_FILTER_RESULTS(kiwix::Filter().category("category_element_overrides_tags"),
"Géographie par Wikipédia",
"Mathématiques"
);
}
TEST_F(LibraryTest, filterByMultipleCriteria)
{
EXPECT_FILTER_RESULTS(kiwix::Filter().query("Wiki").creator("Wiki"),