lib/tests: add one more foo-bar regexp test

This commit is contained in:
Dirk-Jan C. Binnema 2023-10-29 17:04:55 +02:00
parent eee73f8199
commit de302e7609
1 changed files with 2 additions and 1 deletions

View File

@ -651,7 +651,7 @@ Boo!
TempDir tdir;
auto store{make_test_store(tdir.path(), test_msgs, {})};
/* true: match; false: no match */
const auto cases = std::array<std::pair<const char*, bool>, 7>{{
const auto cases = std::array<std::pair<const char*, bool>, 8>{{
{"subject:foo's", true},
{"subject:foo*", true},
{"subject:/foo/", true},
@ -659,6 +659,7 @@ Boo!
{"subject:/foo.*bar/", true}, /* <-- breaks before PR #2365 */
{"subject:/foos bar/", false}, /* <-- no matching, needs quoting */
{"subject:\"/foos bar/\"", true}, /* <-- this works, quote the regex */
{R"(subject:"/foos bar/")", true}, /* <-- this works, quote the regex */
}};
for (auto&& test: cases) {