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

Unified Diff: tests/corelib/string_split_reg_exp_test.dart

Issue 11369210: Make RegExp constructor non-const. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up status files. Created 8 years, 1 month 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
« no previous file with comments | « tests/corelib/reg_exp4_test.dart ('k') | tests/language/reg_exp_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
« no previous file with comments | « tests/corelib/reg_exp4_test.dart ('k') | tests/language/reg_exp_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698