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

Unified Diff: tests/corelib_2/regexp/global_test.dart

Issue 2989863002: Migrated test block 19 to Dart 2.0. (Closed)
Patch Set: Created 3 years, 5 months 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 | « tests/corelib_2/regexp/find-first-asserted_test.dart ('k') | tests/corelib_2/regexp/indexof_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/regexp/global_test.dart
diff --git a/tests/corelib_strong/regexp/global_test.dart b/tests/corelib_2/regexp/global_test.dart
similarity index 98%
rename from tests/corelib_strong/regexp/global_test.dart
rename to tests/corelib_2/regexp/global_test.dart
index 1954916dd14e5b8ee4a7a3e6dc859a7fb21a390f..a19b7f7cf721fffcd34c0e8075ea9dee140b3710 100644
--- a/tests/corelib_strong/regexp/global_test.dart
+++ b/tests/corelib_2/regexp/global_test.dart
@@ -60,7 +60,7 @@ void main() {
str = str.replaceAllMapped(new RegExp(r"(FOUR|TWO) LEGS (GOOD|BAD)"), (m) {
if (m.group(1) == "FOUR") assertTrue(m.group(2) == "GOOD");
if (m.group(1) == "TWO") assertTrue(m.group(2) == "BAD");
- return m.group(0).length - 10;
+ return (m.group(0).length - 10).toString();
});
assertEquals("4, 2!", str);
@@ -96,7 +96,7 @@ void main() {
str = str.replaceAllMapped(new RegExp(r"(FOUR|TWO) \u817f (GOOD|BAD)"), (m) {
if (m.group(1) == "FOUR") assertTrue(m.group(2) == "GOOD");
if (m.group(1) == "TWO") assertTrue(m.group(2) == "BAD");
- return m.group(0).length - 7;
+ return (m.group(0).length - 7).toString();
});
assertEquals("4, 2!", str);
« no previous file with comments | « tests/corelib_2/regexp/find-first-asserted_test.dart ('k') | tests/corelib_2/regexp/indexof_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698