aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2023-03-23 12:25:01 +0100
committerGitHub <noreply@github.com>2023-03-23 12:25:01 +0100
commit71ecc71c899401eae1f9041eee9e0f998745fccf (patch)
tree6ce3e6f5417fd64c449eae225d0a050a48c2cf3a
parentd402dd4a6d999fb82aa335f7f316e58f5b5bf556 (diff)
parent44988beb1e0772d3ee27fcc0baee6289c22f2d76 (diff)
Merge pull request #26550 from vespa-engine/toregge/relax-check-for-max-prefix
Relax check for max prefix.
-rw-r--r--vespalib/src/tests/regex/regex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/tests/regex/regex.cpp b/vespalib/src/tests/regex/regex.cpp
index 1ab4a24a1b3..09188099f2f 100644
--- a/vespalib/src/tests/regex/regex.cpp
+++ b/vespalib/src/tests/regex/regex.cpp
@@ -153,7 +153,7 @@ TEST("Test that default constructed regex is invalid.") {
TEST("Can extract min/max prefix range from anchored regex") {
auto min_max = Regex::from_pattern("^.*").possible_anchored_match_prefix_range();
EXPECT_EQUAL(min_max.first, "");
- EXPECT_EQUAL(min_max.second, "\xf4\x8f\xbf\xc0"); // Highest possible Unicode char (U+10FFFF) as UTF-8, plus 1
+ EXPECT_GREATER_EQUAL(min_max.second, "\xf4\x8f\xbf\xc0"); // Highest possible Unicode char (U+10FFFF) as UTF-8, plus 1
min_max = Regex::from_pattern("^hello").possible_anchored_match_prefix_range();
EXPECT_EQUAL(min_max.first, "hello");