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

Unified Diff: tests/lib/math/random_secure_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/math/random_secure_test.dart
diff --git a/tests/lib/math/random_secure_test.dart b/tests/lib/math/random_secure_test.dart
index 33a563ef45f9a4aedc59755eb174fbedb0ebd694..ef49367f339a125eae851de2c2e8f7c7af8961ea 100644
--- a/tests/lib/math/random_secure_test.dart
+++ b/tests/lib/math/random_secure_test.dart
@@ -28,7 +28,7 @@ main() {
};
results = [];
rng0 = new Random.secure();
- for(var i = 0; i <= 32; i++) {
+ for (var i = 0; i <= 32; i++) {
rng1 = new Random.secure();
checkInt(pow(2, 32));
checkInt(pow(2, 32 - i));
@@ -44,14 +44,14 @@ main() {
};
results = [];
rng0 = new Random.secure();
- for(var i = 0; i < 32; i++) {
+ for (var i = 0; i < 32; i++) {
rng1 = new Random.secure();
checkDouble();
}
var cnt0 = 0;
var cnt1 = 0;
rng0 = new Random.secure();
- for(var i = 0; i < 32; i++) {
+ for (var i = 0; i < 32; i++) {
rng1 = new Random.secure();
cnt0 += rng0.nextBool() ? 1 : 0;
cnt1 += rng1.nextBool() ? 1 : 0;
@@ -59,4 +59,3 @@ main() {
Expect.isTrue((cnt0 > 0) && (cnt0 < 32));
Expect.isTrue((cnt1 > 0) && (cnt1 < 32));
}
-

Powered by Google App Engine
This is Rietveld 408576698