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

Unified Diff: tests/language/constant_string_interpolation2_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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/constant_string_interpolation2_test.dart
diff --git a/tests/language/constant_string_interpolation2_test.dart b/tests/language/constant_string_interpolation2_test.dart
index 9853b0e0a12e3561571f390b8ea9b8d19d763e32..4033d8e3e5a6f98fb184a5ffacd4f9d93d05079e 100644
--- a/tests/language/constant_string_interpolation2_test.dart
+++ b/tests/language/constant_string_interpolation2_test.dart
@@ -51,7 +51,7 @@ const sb4 = "$b4";
// Constant variables in interpolation.
const interpolation1 =
- "$u1 $u2 $u3 $u4 $u5 $u6 $n1 $n2 $n3 $n4 $n5 $n6 $s1 $s2 $s3 $s4 $b1 $b2 $b3 $b4";
+ "$u1 $u2 $u3 $u4 $u5 $u6 $n1 $n2 $n3 $n4 $n5 $n6 $s1 $s2 $s3 $s4 $b1 $b2 $b3 $b4";
// Constant expressions in interpolation.
// (Single string, the linebreak to fit this into 80 chars is inside an
// interpolation, which is allowed, even for single-line strings).
@@ -59,12 +59,12 @@ const interpolation2 =
"${u1} ${u2} ${u3} ${u4} ${u5} ${u6} ${n1} ${n2} ${n3} ${n4} ${n5} ${n6} ${
s1} ${s2} ${s3} ${s4} ${b1} ${b2} ${b3} ${b4}";
// Adjacent string literals are combined.
-const interpolation3 =
- "$u1 $u2 $u3 $u4 $u5 " '$u6 $n1 $n2 $n3 $n4 '
- """$n5 $n6 $s1 $s2 $s3 """ '''$s4 $b1 $b2 $b3 $b4''';
+const interpolation3 = "$u1 $u2 $u3 $u4 $u5 "
+ '$u6 $n1 $n2 $n3 $n4 '
+ """$n5 $n6 $s1 $s2 $s3 """
+ '''$s4 $b1 $b2 $b3 $b4''';
// Nested interpolations.
-const interpolation4 =
- "${"$u1 $u2 $u3 $u4 $u5 " '$u6 $n1 $n2 $n3 $n4'} ${
+const interpolation4 = "${"$u1 $u2 $u3 $u4 $u5 " '$u6 $n1 $n2 $n3 $n4'} ${
"""$n5 $n6 $s1 $s2 $s3 """ '''$s4 $b1 $b2 $b3 $b4'''}";
main() {
@@ -89,7 +89,7 @@ main() {
Expect.equals(b3.toString(), sb3);
Expect.equals(b4.toString(), sb4);
var expect = "null null null null null null 42 3.1415 37 4.6692 2.71828 87 "
- "s1 s2 s1s2 s4 true false false true";
+ "s1 s2 s1s2 s4 true false false true";
Expect.equals(expect, interpolation1);
Expect.equals(expect, interpolation2);
Expect.equals(expect, interpolation3);

Powered by Google App Engine
This is Rietveld 408576698