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

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

Issue 10944: Restructure analysis (Closed)
Patch Set: 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
« no previous file with comments | « src/string-stream.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 8b336e0bea7f522e17c8a1ebca2d9c2206324a09..3db220b7ed95960135ede1a824e26683ec0b1f3d 100644
--- a/test/cctest/test-regexp.cc
+++ b/test/cctest/test-regexp.cc
@@ -678,7 +678,9 @@ TEST(AddInverseToTable) {
ranges->Add(CharacterRange(from, to));
}
DispatchTable table;
- CharacterClassNode::AddInverseToTable(ranges, &table, 0);
+ DispatchTableConstructor cons(&table);
+ cons.set_choice_index(0);
+ cons.AddInverse(ranges);
for (int i = 0; i < kLimit; i++) {
bool is_on = false;
for (int j = 0; !is_on && j < kRangeCount; j++)
@@ -692,7 +694,9 @@ TEST(AddInverseToTable) {
new ZoneList<CharacterRange>(1);
ranges->Add(CharacterRange(0xFFF0, 0xFFFE));
DispatchTable table;
- CharacterClassNode::AddInverseToTable(ranges, &table, 0);
+ DispatchTableConstructor cons(&table);
+ cons.set_choice_index(0);
+ cons.AddInverse(ranges);
CHECK(!table.Get(0xFFFE)->Get(0));
CHECK(table.Get(0xFFFF)->Get(0));
}
« no previous file with comments | « src/string-stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698