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

Unified Diff: tests/corelib/reg_exp5_test.dart

Issue 10981026: Convert raw strings to new syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
« no previous file with comments | « tests/corelib/reg_exp4_test.dart ('k') | tests/corelib/string_replace_dollar_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp5_test.dart
===================================================================
--- tests/corelib/reg_exp5_test.dart (revision 12867)
+++ tests/corelib/reg_exp5_test.dart (working copy)
@@ -12,12 +12,12 @@
Expect.fail("Expected: NullPointerException got: ${e}");
}
}
- Expect.isFalse(new RegExp(@"^\w+$").hasMatch(str));
- Match fm = new RegExp(@"^\w+$").firstMatch(str);
+ Expect.isFalse(new RegExp(r"^\w+$").hasMatch(str));
+ Match fm = new RegExp(r"^\w+$").firstMatch(str);
Expect.equals(null, fm);
- Iterable<Match> am = new RegExp(@"^\w+$").allMatches(str);
+ Iterable<Match> am = new RegExp(r"^\w+$").allMatches(str);
Expect.isFalse(am.iterator().hasNext());
- Expect.equals(null, new RegExp(@"^\w+$").stringMatch(str));
+ Expect.equals(null, new RegExp(r"^\w+$").stringMatch(str));
}
« no previous file with comments | « tests/corelib/reg_exp4_test.dart ('k') | tests/corelib/string_replace_dollar_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698