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

Unified Diff: tests/language/optimized_hoisting_checked_mode_assert_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/optimized_hoisting_checked_mode_assert_test.dart
diff --git a/tests/language/optimized_hoisting_checked_mode_assert_test.dart b/tests/language/optimized_hoisting_checked_mode_assert_test.dart
index 33996785427e99b8cae9f7c314979d18dea6ad86..27eabb8cfefc99b00adf1901068c04324ff2a2e6 100644
--- a/tests/language/optimized_hoisting_checked_mode_assert_test.dart
+++ b/tests/language/optimized_hoisting_checked_mode_assert_test.dart
@@ -7,9 +7,9 @@ import "package:expect/expect.dart";
// Test checked mode assertions inside loops.
-int foo(x, n) {
+int foo(x, n) {
double z = 0.0;
- for (var i=0; i<n; i++) {
+ for (var i = 0; i < n; i++) {
double z = x;
}
return 0;
@@ -18,6 +18,5 @@ int foo(x, n) {
main() {
for (var i = 0; i < 20; i++) foo(1.0, 10);
Expect.equals(0, foo(1.0, 10));
- Expect.equals(0, foo(2, 0)); // Must not throw in checked mode.
+ Expect.equals(0, foo(2, 0)); // Must not throw in checked mode.
}
-

Powered by Google App Engine
This is Rietveld 408576698