aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-03-23 11:16:42 +0100
committerTor Egge <Tor.Egge@online.no>2023-03-23 11:16:42 +0100
commit44988beb1e0772d3ee27fcc0baee6289c22f2d76 (patch)
tree8a32d61c4f20616a2a426fc18d8b50f230f9bc87 /vespalib/src
parenta9a6d2275c49f5690791cbb50648589ea800a146 (diff)
Relax check for max prefix.
Diffstat (limited to 'vespalib/src')
-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");