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

Unified Diff: tests/lib_strong/math/low_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/low_test.dart
diff --git a/tests/lib_strong/math/low_test.dart b/tests/lib_strong/math/low_test.dart
index 31f0e8a8f69db32f4d2e64ee658f22d0089da2cd..80022c7c890ef48cd97cbd8e76f46e3c5ed6d20e 100644
--- a/tests/lib_strong/math/low_test.dart
+++ b/tests/lib_strong/math/low_test.dart
@@ -12,12 +12,12 @@ import "package:expect/expect.dart";
import 'dart:math';
void main() {
- var n = (2 * (1<<32)) ~/ 3;
+ var n = (2 * (1 << 32)) ~/ 3;
var n2 = n ~/ 2;
-
+
var iterations = 200000;
- var seed = new Random().nextInt(1<<16);
+ var seed = new Random().nextInt(1 << 16);
print("low_test seed: $seed");
var prng = new Random(seed);
@@ -27,8 +27,8 @@ void main() {
low++;
}
}
-
+
var diff = (low - (iterations ~/ 2)).abs();
print("$low, $diff");
- Expect.isTrue(diff < (iterations ~/ 20));
+ Expect.isTrue(diff < (iterations ~/ 20));
}

Powered by Google App Engine
This is Rietveld 408576698