Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: test/cctest/test-regexp.cc

Issue 10759: Introduce text nodes (Closed)
Patch Set: Fixed repeated RemoveLast issue Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/parser.cc ('K') | « src/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-regexp.cc
diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
index d9e49c1a4e98ec91ac8017e9ba3b55730737b860..264dab31fd0e0e09579a48883e56eca905ac1bab 100644
--- a/test/cctest/test-regexp.cc
+++ b/test/cctest/test-regexp.cc
@@ -174,6 +174,7 @@ TEST(Parser) {
CHECK_PARSE_EQ("\\x3z", "'x3z'");
CHECK_PARSE_EQ("\\u0034", "'\x34'");
CHECK_PARSE_EQ("\\u003z", "'u003z'");
+ CHECK_PARSE_EQ("foo[z]*", "(: 'foo' (# 0 - g [z]))");
CHECK_ESCAPES("a", false);
CHECK_ESCAPES("a|b", false);
@@ -219,7 +220,7 @@ TEST(Parser) {
}
TEST(ParserRegression) {
- CHECK_PARSE_EQ("[A-Z$-][x]", "(: [A-Z $ -] [x])");
+ CHECK_PARSE_EQ("[A-Z$-][x]", "(! [A-Z $ -] [x])");
}
static void ExpectError(const char* input,
@@ -707,5 +708,5 @@ TEST(AddInverseToTable) {
TEST(Graph) {
- Execute("a|(b|c)|d", "", true);
+ Execute("fo[ob]ar|[ba]z|x[yz]*", "", true);
}
« src/parser.cc ('K') | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698