diff options
Diffstat (limited to 'libs/regex/test/regress/test_replace.cpp')
-rw-r--r-- | libs/regex/test/regress/test_replace.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/regex/test/regress/test_replace.cpp b/libs/regex/test/regress/test_replace.cpp index 2d8724eb52..be51826801 100644 --- a/libs/regex/test/regress/test_replace.cpp +++ b/libs/regex/test/regress/test_replace.cpp @@ -190,5 +190,9 @@ void test_replace() TEST_REGEX_REPLACE("(?:(?<one>a)|(?<one>b))", perl, " ...b,,", match_default, "$1.$2.$+{one}", " ....b.b,,"); TEST_REGEX_REPLACE("(?:(?<one>a)(?<one>b))", perl, " ...ab,,", match_default, "$1.$2.$+{one}", " ...a.b.a,,"); + // See https://svn.boost.org/trac/boost/ticket/589 + TEST_REGEX_REPLACE("(a*)", perl, "aabb", match_default, "{$1}", "{aa}{}b{}b{}"); + TEST_REGEX_REPLACE("(a*)", extended, "aabb", match_default, "{$1}", "{aa}{}b{}b{}"); + TEST_REGEX_REPLACE("(a*)", extended, "aabb", match_default|match_posix, "{$1}", "{aa}b{}b{}"); } |