Index: tests/corelib/reg_exp4_test.dart |
diff --git a/tests/corelib/reg_exp4_test.dart b/tests/corelib/reg_exp4_test.dart |
index 41d8f50743f884e8d72294849ec0d716d420d9c6..2daca498cf9b5809540db9502a7db5e28428a06d 100644 |
--- a/tests/corelib/reg_exp4_test.dart |
+++ b/tests/corelib/reg_exp4_test.dart |
@@ -5,7 +5,7 @@ |
main() { |
try { |
- RegExp ex = new RegExp(null); |
+ RegExp ex = const RegExp(null); |
Expect.fail("Expected: NullPointerException got: no exception"); |
} on Exception catch (ex) { |
if (!(ex is NullPointerException)) { |
@@ -13,7 +13,7 @@ main() { |
} |
} |
try { |
- new RegExp(r"^\w+$").hasMatch(null); |
+ const RegExp(r"^\w+$").hasMatch(null); |
Expect.fail("Expected: NullPointerException got: no exception"); |
} on Exception catch (ex) { |
if (!(ex is NullPointerException)) { |
@@ -21,7 +21,7 @@ main() { |
} |
} |
try { |
- new RegExp(r"^\w+$").firstMatch(null); |
+ const RegExp(r"^\w+$").firstMatch(null); |
Expect.fail("Expected: NullPointerException got: no exception"); |
} on Exception catch (ex) { |
if (!(ex is NullPointerException)) { |
@@ -29,7 +29,7 @@ main() { |
} |
} |
try { |
- new RegExp(r"^\w+$").allMatches(null); |
+ const RegExp(r"^\w+$").allMatches(null); |
Expect.fail("Expected: NullPointerException got: no exception"); |
} on Exception catch (ex) { |
if (!(ex is NullPointerException)) { |
@@ -37,7 +37,7 @@ main() { |
} |
} |
try { |
- new RegExp(r"^\w+$").stringMatch(null); |
+ const RegExp(r"^\w+$").stringMatch(null); |
Expect.fail("Expected: NullPointerException got: no exception"); |
} on Exception catch (ex) { |
if (!(ex is NullPointerException)) { |