Index: test/cctest/test-regexp.cc |
diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc |
index 3bf24a8ab1bf66e10fc14f0295df85b69bbc4072..3e6709aef43c47aea5da17f787558cc9755c1069 100644 |
--- a/test/cctest/test-regexp.cc |
+++ b/test/cctest/test-regexp.cc |
@@ -173,6 +173,9 @@ TEST(Parser) { |
CHECK_PARSE_EQ("[a-b-c]", "[a-b - c]"); |
CHECK_PARSE_EQ("[\\d]", "[0-9]"); |
CHECK_PARSE_EQ("[x\\dz]", "[x 0-9 z]"); |
+ CHECK_PARSE_EQ("[\\d-z]", "[0-9 - z]"); |
+ CHECK_PARSE_EQ("[\\d-\\d]", "[0-9 - 0-9]"); |
+ CHECK_PARSE_EQ("[z-\\d]", "[z - 0-9]"); |
CHECK_PARSE_EQ("\\cj\\cJ\\ci\\cI\\ck\\cK", |
"'\\x0a\\x0a\\x09\\x09\\x0b\\x0b'"); |
CHECK_PARSE_EQ("\\c!", "'c!'"); |