LibraryTest.filterByMaxSize

This commit is contained in:
Veloman Yunkan 2021-04-11 16:01:09 +04:00
parent 95c354a5fa
commit b9be742085
1 changed files with 7 additions and 0 deletions

View File

@ -496,6 +496,13 @@ TEST_F(LibraryTest, filterByCategory)
);
}
TEST_F(LibraryTest, filterByMaxSize)
{
EXPECT_FILTER_RESULTS(kiwix::Filter().maxSize(200000),
"An example ZIM archive"
);
}
TEST_F(LibraryTest, filterByMultipleCriteria)
{
EXPECT_FILTER_RESULTS(kiwix::Filter().query("Wiki").creator("Wiki"),