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

Unified Diff: tests/language_strong/string_interpolate2_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_strong/string_interpolate2_test.dart
diff --git a/tests/language_strong/string_interpolate2_test.dart b/tests/language_strong/string_interpolate2_test.dart
index 6cf88a9708206da06b1308ed42ed66a9077da3c1..bb49ba519d51965ba494ceaa8315e8d22812ec43 100644
--- a/tests/language_strong/string_interpolate2_test.dart
+++ b/tests/language_strong/string_interpolate2_test.dart
@@ -5,15 +5,12 @@
import "package:expect/expect.dart";
-
class StringInterpolate2Test {
-
static var F1;
static void testMain() {
-
F1 = "1 + 5 = ${1+5}";
-
+
Expect.equals("1 + 5 = 6", F1);
var fib = [1, 1, 2, 3, 5, 8, 13, 21];
@@ -33,10 +30,12 @@ class StringInterpolate2Test {
// test single quote
Expect.equals("8", '${fib.length}');
// test multi-line
- Expect.equals("8", '${fib.
+ Expect.equals(
+ "8",
+ '${fib.
length}');
- var map = { "red": 1, "green": 2, "blue": 3 };
+ var map = {"red": 1, "green": 2, "blue": 3};
s = "green has value ${map["green"]}";
Expect.equals("green has value 2", s);

Powered by Google App Engine
This is Rietveld 408576698