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

Unified Diff: tests/language_strong/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_strong/optimized_hoisting_checked_mode_assert_test.dart
diff --git a/tests/language_strong/optimized_hoisting_checked_mode_assert_test.dart b/tests/language_strong/optimized_hoisting_checked_mode_assert_test.dart
index 81ff2e283819299647fa6d00d10ccdde7630d54c..ac45ebfc972e1002f0968c19af493f496e2335b1 100644
--- a/tests/language_strong/optimized_hoisting_checked_mode_assert_test.dart
+++ b/tests/language_strong/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