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

Unified Diff: tests/corelib/regexp/ecma-regex-examples_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/corelib/regexp/ecma-regex-examples_test.dart
diff --git a/tests/corelib/regexp/ecma-regex-examples_test.dart b/tests/corelib/regexp/ecma-regex-examples_test.dart
index c6cff0f1e37d46b149e987d96f2eceacf0b19497..6ad84b64b5601cdaeaa510e773fd76eb6fcfb3a3 100644
--- a/tests/corelib/regexp/ecma-regex-examples_test.dart
+++ b/tests/corelib/regexp/ecma-regex-examples_test.dart
@@ -27,14 +27,14 @@ import 'package:expect/expect.dart';
void main() {
description(
- "This page tests the regex examples from the ECMA-262 specification."
- );
+ "This page tests the regex examples from the ECMA-262 specification.");
var regex01 = new RegExp(r"a|ab");
shouldBe(regex01.firstMatch("abc"), ["a"]);
var regex02 = new RegExp(r"((a)|(ab))((c)|(bc))");
- shouldBe(regex02.firstMatch("abc"), ["abc", "a", "a", null, "bc", null, "bc"]);
+ shouldBe(
+ regex02.firstMatch("abc"), ["abc", "a", "a", null, "bc", null, "bc"]);
var regex03 = new RegExp(r"a[a-z]{2,4}");
shouldBe(regex03.firstMatch("abcdefghi"), ["abcde"]);
@@ -46,10 +46,13 @@ void main() {
shouldBe(regex05.firstMatch("aabaac"), ["aaba", "ba"]);
var regex06 = new RegExp(r"^(a+)\1*,\1+$");
- Expect.equals("aaaaaaaaaa,aaaaaaaaaaaaaaa".replaceAllMapped(regex06,(m) => m.group(1)), "aaaaa");
+ Expect.equals(
+ "aaaaaaaaaa,aaaaaaaaaaaaaaa".replaceAllMapped(regex06, (m) => m.group(1)),
+ "aaaaa");
var regex07 = new RegExp(r"(z)((a+)?(b+)?(c))*");
- shouldBe(regex07.firstMatch("zaacbbbcac"), ["zaacbbbcac", "z", "ac", "a", null, "c"]);
+ shouldBe(regex07.firstMatch("zaacbbbcac"),
+ ["zaacbbbcac", "z", "ac", "a", null, "c"]);
var regex08 = new RegExp(r"(a*)*");
shouldBe(regex08.firstMatch("b"), ["", null]);

Powered by Google App Engine
This is Rietveld 408576698