From de302e76098465363a2c8ccf99e014dec11192f0 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 29 Oct 2023 17:04:55 +0200 Subject: [PATCH] lib/tests: add one more foo-bar regexp test --- lib/tests/test-mu-store-query.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/test-mu-store-query.cc b/lib/tests/test-mu-store-query.cc index 44d2bb3e..098579ca 100644 --- a/lib/tests/test-mu-store-query.cc +++ b/lib/tests/test-mu-store-query.cc @@ -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, 7>{{ + const auto cases = std::array, 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:/foo’s bar/", false}, /* <-- no matching, needs quoting */ {"subject:\"/foo’s bar/\"", true}, /* <-- this works, quote the regex */ + {R"(subject:"/foo’s bar/")", true}, /* <-- this works, quote the regex */ }}; for (auto&& test: cases) {