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

Unified Diff: tests/language/adjacent_string_literals_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
Index: tests/language/adjacent_string_literals_test.dart
===================================================================
--- tests/language/adjacent_string_literals_test.dart (revision 12867)
+++ tests/language/adjacent_string_literals_test.dart (working copy)
@@ -11,50 +11,50 @@
testEmpty() {
Expect.equals("", "" "" "");
Expect.equals("", "" '' "");
- Expect.equals("", "" "" @"");
-
+ Expect.equals("", "" "" r"");
+
Expect.equals("a", "a" "");
Expect.equals("a", "a" '');
- Expect.equals("a", "a" @'');
+ Expect.equals("a", "a" r'');
Expect.equals("b", 'b' "");
Expect.equals("b", 'b' '');
- Expect.equals("b", 'b' @'');
-
- Expect.equals("c", @'c' "");
- Expect.equals("c", @'c' '');
- Expect.equals("c", @'c' @'');
+ Expect.equals("b", 'b' r'');
+ Expect.equals("c", r'c' "");
+ Expect.equals("c", r'c' '');
+ Expect.equals("c", r'c' r'');
+
Expect.equals("a", "" "a");
Expect.equals("a", "" 'a');
- Expect.equals("a", "" @'a');
+ Expect.equals("a", "" r'a');
Expect.equals("b", '' "b");
Expect.equals("b", '' 'b');
- Expect.equals("b", '' @'b');
-
- Expect.equals("c", @'' "c");
- Expect.equals("c", @'' 'c');
- Expect.equals("c", @'' @'c');
+ Expect.equals("b", '' r'b');
+
+ Expect.equals("c", r'' "c");
+ Expect.equals("c", r'' 'c');
+ Expect.equals("c", r'' r'c');
}
testInterpolation() {
var s = "a";
- Expect.equals(@"ab", "$s" "b");
- Expect.equals(@"ab", '$s' "b");
- Expect.equals(@"$sb", @'$s' "b");
+ Expect.equals(r"ab", "$s" "b");
+ Expect.equals(r"ab", '$s' "b");
+ Expect.equals(r"$sb", r'$s' "b");
- Expect.equals(@"-a-b", "-$s-" "b");
- Expect.equals(@"-a-b", '-$s-' "b");
- Expect.equals(@"-$s-b", @'-$s-' "b");
-
- Expect.equals(@"ba", 'b' "$s");
- Expect.equals(@"ba", 'b' '$s');
- Expect.equals(@"b$s", 'b' @'$s');
+ Expect.equals(r"-a-b", "-$s-" "b");
+ Expect.equals(r"-a-b", '-$s-' "b");
+ Expect.equals(r"-$s-b", r'-$s-' "b");
- Expect.equals(@"b-a-", 'b' "-$s-");
- Expect.equals(@"b-a-", 'b' '-$s-');
- Expect.equals(@"b-$s-", 'b' @'-$s-');
+ Expect.equals(r"ba", 'b' "$s");
+ Expect.equals(r"ba", 'b' '$s');
+ Expect.equals(r"b$s", 'b' r'$s');
+
+ Expect.equals(r"b-a-", 'b' "-$s-");
+ Expect.equals(r"b-a-", 'b' '-$s-');
+ Expect.equals(r"b-$s-", 'b' r'-$s-');
}
testMultiline() {
« no previous file with comments | « tests/language/adjacent_const_string_literals_test.dart ('k') | tests/language/field_method4_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698