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

Unified Diff: tests/language/raw_string_test.dart

Issue 10914213: Support r"xxx" raw strings (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 | « runtime/vm/scanner.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/raw_string_test.dart
===================================================================
--- tests/language/raw_string_test.dart (revision 12216)
+++ tests/language/raw_string_test.dart (working copy)
@@ -4,35 +4,35 @@
class RawStringTest {
static testMain() {
- Expect.equals("abcd", @"abcd");
- Expect.equals("", @"");
- Expect.equals("", @'');
- Expect.equals("", @"""""");
- Expect.equals("", @'''''');
- Expect.equals("''''", @"''''");
- Expect.equals('""""', @'""""');
- Expect.equals("1\n2\n3", @"""1
+ Expect.equals("abcd", r"abcd");
+ Expect.equals("", r"");
+ Expect.equals("", r'');
+ Expect.equals("", r"""""");
+ Expect.equals("", r'''''');
+ Expect.equals("''''", r"''''");
+ Expect.equals('""""', r'""""');
+ Expect.equals("1\n2\n3", r"""1
2
3""");
- Expect.equals("1\n2\n3", @'''1
+ Expect.equals("1\n2\n3", r'''1
2
3''');
- Expect.equals("1", @"""
+ Expect.equals("1", r"""
1""");
- Expect.equals("1", @'''
+ Expect.equals("1", r'''
1''');
- Expect.equals("'", @"'");
- Expect.equals('"', @'"');
- Expect.equals("1", @"1");
- Expect.equals("1", @"1");
- Expect.equals("\$", @"$");
- Expect.equals("\\", @"\");
- Expect.equals("\\", @'\');
- Expect.equals("\${12}", @"${12}");
+ Expect.equals("'", r"'");
+ Expect.equals('"', r'"');
+ Expect.equals("1", r"1");
+ Expect.equals("1", r"1");
+ Expect.equals("\$", r"$");
+ Expect.equals("\\", r"\");
+ Expect.equals("\\", r'\');
+ Expect.equals("\${12}", r"${12}");
Expect.equals("\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m",
- @"\a\b\c\d\e\f\g\h\i\j\k\l\m");
+ r"\a\b\c\d\e\f\g\h\i\j\k\l\m");
Expect.equals("\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z",
- @"\n\o\p\q\r\s\t\u\v\w\x\y\z");
+ r"\n\o\p\q\r\s\t\u\v\w\x\y\z");
}
}
main() {
« no previous file with comments | « runtime/vm/scanner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698