summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-07-05 04:56:21 +0430
committerAndreas Kling <kling@serenityos.org>2022-07-05 07:19:13 +0200
commit7d01ee63d65831a4d32a4184517f7cc6e68ee83c (patch)
tree99acc652421eccecae5325cea7cc01be8a3cb893 /Tests
parentc774790975f136bcff70dd4e9fa444f100f34003 (diff)
downloadserenity-7d01ee63d65831a4d32a4184517f7cc6e68ee83c.zip
LibRegex: Use proper CharRange constructor instead of bit_casting
Otherwise the range order would be inverted.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibRegex/Regex.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/LibRegex/Regex.cpp b/Tests/LibRegex/Regex.cpp
index 49e05203e9..eac8709085 100644
--- a/Tests/LibRegex/Regex.cpp
+++ b/Tests/LibRegex/Regex.cpp
@@ -922,6 +922,7 @@ TEST_CASE(optimizer_atomic_groups)
Tuple { "a+b"sv, "aaaaa"sv, false },
Tuple { "\\\\(\\d+)"sv, "\\\\"sv, false }, // Rewrite bug turning a+ to a*, see #10952.
Tuple { "[a-z.]+\\."sv, "..."sv, true }, // Rewrite bug, incorrect interpretation of Compare.
+ Tuple { "[.-]+\\."sv, ".-."sv, true },
// Alternative fuse
Tuple { "(abcfoo|abcbar|abcbaz).*x"sv, "abcbarx"sv, true },
Tuple { "(a|a)"sv, "a"sv, true },