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

Unified Diff: tests/corelib_strong/regexp/multiline_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/multiline_test.dart
diff --git a/tests/corelib_strong/regexp/multiline_test.dart b/tests/corelib_strong/regexp/multiline_test.dart
index 88222bfb0e242790cf5466a9c61232b4230daf5f..fd4b34037186f152904d6048f7dc3438e0072de2 100644
--- a/tests/corelib_strong/regexp/multiline_test.dart
+++ b/tests/corelib_strong/regexp/multiline_test.dart
@@ -61,7 +61,6 @@ void main() {
assertFalse(new RegExp(r"bxr$", multiLine: true).hasMatch("bar\nfoo"));
assertFalse(new RegExp(r"bxr$", multiLine: true).hasMatch("foo\nbar"));
-
assertTrue(new RegExp(r"^.*$").hasMatch(""));
assertTrue(new RegExp(r"^.*$").hasMatch("foo"));
assertFalse(new RegExp(r"^.*$").hasMatch("\n"));
@@ -83,7 +82,6 @@ void main() {
assertTrue(new RegExp(r"^[\].]*$").hasMatch("...]..."));
-
dynamic check_case(lc, uc) {
var a = new RegExp("^" + lc + r"$");
assertFalse(a.hasMatch(uc));
@@ -106,13 +104,11 @@ void main() {
assertTrue(A.hasMatch(lc));
}
-
check_case("a", "A");
// Aring
check_case(new String.fromCharCode(229), new String.fromCharCode(197));
// Russian G
check_case(new String.fromCharCode(0x413), new String.fromCharCode(0x433));
-
assertThrows(() => new RegExp('[z-a]'));
}

Powered by Google App Engine
This is Rietveld 408576698