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

Unified Diff: tests/language_strong/reg_exp_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/language_strong/reg_exp_test.dart
diff --git a/tests/language_strong/reg_exp_test.dart b/tests/language_strong/reg_exp_test.dart
index cde9112c492afc1d50e4d00632a272fc45cf368b..82f459525a33a9ec00ccc32488543ce01ef254e9 100644
--- a/tests/language_strong/reg_exp_test.dart
+++ b/tests/language_strong/reg_exp_test.dart
@@ -19,7 +19,7 @@ void main() {
exp = new RegExp("a?");
str = "babba";
Expect.listEquals(["", "a", "", "", "a", ""],
- exp.allMatches(str).map((x)=>x[0]).toList());
+ exp.allMatches(str).map((x) => x[0]).toList());
// Check that allMatches works with optional start index.
exp = new RegExp("as{2}");
@@ -42,7 +42,7 @@ void main() {
Expect.equals(0, exp.allMatches(str, 3).length);
// Regression test for http://dartbug.com/2980
- exp = new RegExp("^", multiLine: true); // Any zero-length match will work.
+ exp = new RegExp("^", multiLine: true); // Any zero-length match will work.
str = "foo\nbar\nbaz";
Expect.equals(" foo\n bar\n baz", str.replaceAll(exp, " "));

Powered by Google App Engine
This is Rietveld 408576698