Index: tests/language/reg_exp_test.dart |
diff --git a/tests/language/reg_exp_test.dart b/tests/language/reg_exp_test.dart |
index aa3fe39e4f1ac6bf921a669a282e14f0934e27d0..72b4ab084a3ddff14f4d95e638ac08e95f20f2a5 100644 |
--- a/tests/language/reg_exp_test.dart |
+++ b/tests/language/reg_exp_test.dart |
@@ -5,7 +5,7 @@ |
class RegExpTest { |
static test1() { |
- RegExp exp = new RegExp("(\\w+)"); |
+ RegExp exp = const RegExp("(\\w+)"); |
String str = "Parse my string"; |
List<Match> matches = new List<Match>.from(exp.allMatches(str)); |
Expect.equals(3, matches.length); |