commit | 11985b4787490e5ad578d7a7285004ff8a4bb01e | [log] [tgz] |
---|---|---|
author | Louis Dionne <ldionne@apple.com> | Tue Aug 27 20:39:10 2019 +0000 |
committer | Louis Dionne <ldionne@apple.com> | Tue Aug 27 20:39:10 2019 +0000 |
tree | f847ce8d780cd1f8c4351a7ac54627668e86b528 | |
parent | 78af550193307bd47e1acec23969382ea8c9dd2b [diff] |
[libc++] Add yet another test for inverted character classes This was reported as part of a bug report that ended up being a duplicate for r340609, but I'm adding the test case since it's ever so slightly different from what we had before. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@370109 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp b/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp index 9f3c44a..4b5ed6a 100644 --- a/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp +++ b/test/std/re/re.alg/re.alg.match/inverted_character_classes.pass.cpp
@@ -53,5 +53,8 @@ assert(!std::regex_match("abZcd", std::regex("^ab\\dcd"))); assert(!std::regex_match("ab5cd", std::regex("^ab\\Dcd"))); + assert(std::regex_match("_xyz_", std::regex("_(\\s|\\S)+_"))); + assert(std::regex_match("_xyz_", std::regex("_[\\s\\S]+_"))); + return 0; }