File tests/ItemFilter.cpp changed (mode: 100644) (index 53646c7..a180990) |
... |
... |
TEST_CASE("Error messages add up", "[item-filter]") |
37 |
37 |
Item item = Tests::makeItem("id"); |
Item item = Tests::makeItem("id"); |
38 |
38 |
item.setValue("title", "title"); |
item.setValue("title", "title"); |
39 |
39 |
|
|
40 |
|
ItemFilter filter({ "_id==notid", "title!=title", "_id!/id", "title/xy" }); |
|
|
40 |
|
ItemFilter filter({ "_id==notid", "title!=title", "_id!/ID", "title/xy" }); |
41 |
41 |
|
|
42 |
42 |
std::string error; |
std::string error; |
43 |
43 |
auto accessor = [&item](const std::string &f) { return item.getValue(f); }; |
auto accessor = [&item](const std::string &f) { return item.getValue(f); }; |