Index: tests/corelib/regexp/v8_regexp_utils.dart |
diff --git a/tests/corelib/regexp/v8_regexp_utils.dart b/tests/corelib/regexp/v8_regexp_utils.dart |
index 83e56d09eb3b2afaae37381241feb38f762ecbc9..cde750a7294089ae774958b8cbeab152cfde3599 100644 |
--- a/tests/corelib/regexp/v8_regexp_utils.dart |
+++ b/tests/corelib/regexp/v8_regexp_utils.dart |
@@ -9,11 +9,19 @@ import "package:expect/expect.dart"; |
void assertEquals(actual, expected, [String message = null]) { |
Expect.equals(actual, expected, message); |
} |
-void assertTrue(actual, [String message = null]) { Expect.isTrue(actual, message); } |
-void assertFalse(actual, [String message = null]) { Expect.isFalse(actual, message); } |
+ |
+void assertTrue(actual, [String message = null]) { |
+ Expect.isTrue(actual, message); |
+} |
+ |
+void assertFalse(actual, [String message = null]) { |
+ Expect.isFalse(actual, message); |
+} |
+ |
void assertThrows(fn, [num testid = null]) { |
Expect.throws(fn, null, "Test $testid"); |
} |
+ |
void assertNull(actual, [num testid = null]) { |
Expect.isNull(actual, "Test $testid"); |
} |
@@ -27,9 +35,17 @@ void assertToStringEquals(str, match, num testid) { |
Expect.equals(str, actual.join(","), "Test $testid"); |
} |
-void shouldBeTrue(actual) { Expect.isTrue(actual); } |
-void shouldBeFalse(actual) { Expect.isFalse(actual); } |
-void shouldBeNull(actual) { Expect.isNull(actual); } |
+void shouldBeTrue(actual) { |
+ Expect.isTrue(actual); |
+} |
+ |
+void shouldBeFalse(actual) { |
+ Expect.isFalse(actual); |
+} |
+ |
+void shouldBeNull(actual) { |
+ Expect.isNull(actual); |
+} |
void shouldBe(actual, expected, [String message = null]) { |
if (expected == null) { |
@@ -46,4 +62,4 @@ Match firstMatch(String str, RegExp pattern) => pattern.firstMatch(str); |
List<String> allStringMatches(String str, RegExp pattern) => |
pattern.allMatches(str).map((Match m) => m.group(0)).toList(); |
-void description(str) { } |
+void description(str) {} |