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

Unified Diff: tests/language_strong/bool_check_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/bool_check_test.dart
diff --git a/tests/language_strong/bool_check_test.dart b/tests/language_strong/bool_check_test.dart
index 49363ff834cee0a2e8a484f13abbf5c9da00c1be..d01f6bfecd6b5505c4be05376dc82b378ed7b79e 100644
--- a/tests/language_strong/bool_check_test.dart
+++ b/tests/language_strong/bool_check_test.dart
@@ -27,7 +27,13 @@ bool assertionsEnabled() {
final bool typeChecksOn = typeChecksEnabled();
final bool assertionsOn = assertionsEnabled();
-ifExpr(e) { if (e) return true; else return false; }
+ifExpr(e) {
+ if (e)
+ return true;
+ else
+ return false;
+}
+
bool ifNull() => ifExpr(null);
bool ifString() => ifExpr("true");
@@ -51,4 +57,4 @@ main() {
if (typeChecksOn) {
Expect.throws(ifString, (e) => e is TypeError);
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698