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

Unified Diff: tests/corelib_strong/regexp/indexof_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_strong/regexp/indexof_test.dart
diff --git a/tests/corelib_strong/regexp/indexof_test.dart b/tests/corelib_strong/regexp/indexof_test.dart
index 108298799b3534244ed93fef2f8e2b0b63006144..7b0489f5d7e51f97a3d62eca36659c345493b192 100644
--- a/tests/corelib_strong/regexp/indexof_test.dart
+++ b/tests/corelib_strong/regexp/indexof_test.dart
@@ -50,21 +50,56 @@ void main() {
}
}
- CheckMatch(new RegExp(r"abc"), "xxxabcxxxabcxxx", [[3, 3], [9, 3]]);
- CheckMatch(new RegExp(r"abc"), "abcabcabc", [[0, 3], [3, 3], [6, 3]]);
- CheckMatch(new RegExp(r"aba"), "ababababa", [[0, 3], [4, 3]]);
- CheckMatch(new RegExp(r"foo"), "ofooofoooofofooofo", [[1, 3], [5, 3], [12, 3]]);
+ CheckMatch(new RegExp(r"abc"), "xxxabcxxxabcxxx", [
+ [3, 3],
+ [9, 3]
+ ]);
+ CheckMatch(new RegExp(r"abc"), "abcabcabc", [
+ [0, 3],
+ [3, 3],
+ [6, 3]
+ ]);
+ CheckMatch(new RegExp(r"aba"), "ababababa", [
+ [0, 3],
+ [4, 3]
+ ]);
+ CheckMatch(new RegExp(r"foo"), "ofooofoooofofooofo", [
+ [1, 3],
+ [5, 3],
+ [12, 3]
+ ]);
CheckMatch(new RegExp(r"foobarbaz"), "xx", []);
CheckMatch(new RegExp(r"abc"), "abababa", []);
- assertEquals("xxxdefxxxdefxxx", "xxxabcxxxabcxxx".replaceAll(new RegExp(r"abc"), "def"));
- assertEquals("o-o-oofo-ofo", "ofooofoooofofooofo".replaceAll(new RegExp(r"foo"), "-"));
+ assertEquals("xxxdefxxxdefxxx",
+ "xxxabcxxxabcxxx".replaceAll(new RegExp(r"abc"), "def"));
+ assertEquals(
+ "o-o-oofo-ofo", "ofooofoooofofooofo".replaceAll(new RegExp(r"foo"), "-"));
assertEquals("deded", "deded".replaceAll(new RegExp(r"x"), "-"));
assertEquals("-a-b-c-d-e-f-", "abcdef".replaceAll(new RegExp(""), "-"));
- CheckMatch(new RegExp(r"a(.)"), "xyzzyabxyzzyacxyzzy", [[5, 2], [12, 2]]);
+ CheckMatch(new RegExp(r"a(.)"), "xyzzyabxyzzyacxyzzy", [
+ [5, 2],
+ [12, 2]
+ ]);
- CheckMatch(new RegExp(r"a|(?:)"), "aba", [[0, 1], [1, 0], [2, 1], [3, 0]]);
- CheckMatch(new RegExp(r"a|(?:)"), "baba", [[0, 0], [1, 1], [2, 0], [3, 1], [4, 0]]);
- CheckMatch(new RegExp(r"a|(?:)"), "bab", [[0, 0], [1, 1], [2, 0], [3, 0]]);
+ CheckMatch(new RegExp(r"a|(?:)"), "aba", [
+ [0, 1],
+ [1, 0],
+ [2, 1],
+ [3, 0]
+ ]);
+ CheckMatch(new RegExp(r"a|(?:)"), "baba", [
+ [0, 0],
+ [1, 1],
+ [2, 0],
+ [3, 1],
+ [4, 0]
+ ]);
+ CheckMatch(new RegExp(r"a|(?:)"), "bab", [
+ [0, 0],
+ [1, 1],
+ [2, 0],
+ [3, 0]
+ ]);
}

Powered by Google App Engine
This is Rietveld 408576698