Index: tests/corelib/regexp/indexof_test.dart |
diff --git a/tests/corelib/regexp/indexof_test.dart b/tests/corelib/regexp/indexof_test.dart |
index 108298799b3534244ed93fef2f8e2b0b63006144..7b0489f5d7e51f97a3d62eca36659c345493b192 100644 |
--- a/tests/corelib/regexp/indexof_test.dart |
+++ b/tests/corelib/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] |
+ ]); |
} |