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

Unified Diff: tests/lib_strong/math/coin_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/lib_strong/math/coin_test.dart
diff --git a/tests/lib_strong/math/coin_test.dart b/tests/lib_strong/math/coin_test.dart
index 1ca2261884fd525e58183128752a0d8ea956c25d..47eb28129887fd816e047b43c6478da36f21c690 100644
--- a/tests/lib_strong/math/coin_test.dart
+++ b/tests/lib_strong/math/coin_test.dart
@@ -11,7 +11,7 @@ import "package:expect/expect.dart";
import 'dart:math';
main() {
- var seed = new Random().nextInt(1<<16);
+ var seed = new Random().nextInt(1 << 16);
print("coin_test seed: $seed");
var rnd = new Random(seed);
var heads = 0;
@@ -24,9 +24,9 @@ main() {
}
}
print("Heads: $heads\n"
- "Tails: $tails\n"
- "Ratio: ${heads/tails}\n");
- Expect.approxEquals(1.0, heads/tails, 0.1);
+ "Tails: $tails\n"
+ "Ratio: ${heads/tails}\n");
+ Expect.approxEquals(1.0, heads / tails, 0.1);
heads = 0;
tails = 0;
@@ -39,9 +39,9 @@ main() {
}
}
print("Heads: $heads\n"
- "Tails: $tails\n"
- "Ratio: ${heads/tails}\n");
- Expect.approxEquals(1.0, heads/tails, 0.1);
+ "Tails: $tails\n"
+ "Ratio: ${heads/tails}\n");
+ Expect.approxEquals(1.0, heads / tails, 0.1);
// A sequence of newly allocated Random number generators should have fair
// initial tosses.
@@ -56,7 +56,7 @@ main() {
}
}
print("Heads: $heads\n"
- "Tails: $tails\n"
- "Ratio: ${heads/tails}\n");
- Expect.approxEquals(1.0, heads/tails, 0.1);
-}
+ "Tails: $tails\n"
+ "Ratio: ${heads/tails}\n");
+ Expect.approxEquals(1.0, heads / tails, 0.1);
+}

Powered by Google App Engine
This is Rietveld 408576698