diff options
Diffstat (limited to 'Tests/LibRegex/Regex.cpp')
-rw-r--r-- | Tests/LibRegex/Regex.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/LibRegex/Regex.cpp b/Tests/LibRegex/Regex.cpp index e77a90356e..9529ce790c 100644 --- a/Tests/LibRegex/Regex.cpp +++ b/Tests/LibRegex/Regex.cpp @@ -559,6 +559,12 @@ TEST_CASE(ECMA262_parse) { "[\\00]"sv, regex::Error::InvalidPattern, combine_flags(ECMAScriptFlags::Unicode, ECMAScriptFlags::BrowserExtended) }, { "\\^\\$\\\\\\.\\*\\+\\?\\(\\)\\[\\]\\{\\}\\|\\/"sv, regex::Error::NoError, ECMAScriptFlags::Unicode }, { "[\\^\\$\\\\\\.\\*\\+\\?\\(\\)\\[\\]\\{\\}\\|\\/]"sv, regex::Error::NoError, ECMAScriptFlags::Unicode }, + { "]"sv, regex::Error::NoError, ECMAScriptFlags::BrowserExtended }, + { "]"sv, regex::Error::InvalidPattern, ECMAScriptFlags::Unicode }, + { "\\]"sv, regex::Error::NoError, ECMAScriptFlags::Unicode }, + { "}"sv, regex::Error::NoError, ECMAScriptFlags::BrowserExtended }, + { "}"sv, regex::Error::InvalidPattern, ECMAScriptFlags::Unicode }, + { "\\}"sv, regex::Error::NoError, ECMAScriptFlags::Unicode }, }; for (auto& test : tests) { |