Index: tests/corelib/string_split_reg_exp_test.dart |
diff --git a/tests/corelib/string_split_reg_exp_test.dart b/tests/corelib/string_split_reg_exp_test.dart |
index 1fa1e83bd5558fd21f4a304b173632d2e8e61445..bd52cf7aa023686352094828a91e093a2c1ee15b 100644 |
--- a/tests/corelib/string_split_reg_exp_test.dart |
+++ b/tests/corelib/string_split_reg_exp_test.dart |
@@ -3,13 +3,13 @@ |
// BSD-style license that can be found in the LICENSE file. |
main() { |
- var list = "a b c".split(const RegExp(" ")); |
+ var list = "a b c".split(new RegExp(" ")); |
Expect.equals(3, list.length); |
Expect.equals("a", list[0]); |
Expect.equals("b", list[1]); |
Expect.equals("c", list[2]); |
- list = "adbdc".split(const RegExp("[dz]")); |
+ list = "adbdc".split(new RegExp("[dz]")); |
Expect.equals(3, list.length); |
Expect.equals("a", list[0]); |
Expect.equals("b", list[1]); |
@@ -38,7 +38,7 @@ main() { |
Expect.equals("", list[2]); |
Expect.equals("", list[3]); |
- list = "aaa".split(const RegExp(r"a$")); |
+ list = "aaa".split(new RegExp(r"a$")); |
Expect.equals(2, list.length); |
Expect.equals("aa", list[0]); |
Expect.equals("", list[1]); |