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

Unified Diff: tests/language_strong/logical_expression3_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/logical_expression3_test.dart
diff --git a/tests/language_strong/logical_expression3_test.dart b/tests/language_strong/logical_expression3_test.dart
index 2a90d70ba672871c4b495dc86c4064a3ed0c1072..c207afb8059d096b3245d6a4c9f54584d0cfa12e 100644
--- a/tests/language_strong/logical_expression3_test.dart
+++ b/tests/language_strong/logical_expression3_test.dart
@@ -17,13 +17,12 @@ int confuse(x) {
}
main() {
- var o = [ "foo", 499 ][confuse(0)];
+ var o = ["foo", 499][confuse(0)];
// When the lhs of a logical or fails, it must not assume that all negative is
// checks in it, have failed.
// Here, the `o is! num` check succeeds, but the length test failed.
- if ((o is! num && o.length == 4) ||
- (nonInlinedNumTypeCheck(o))) {
+ if ((o is! num && o.length == 4) || (nonInlinedNumTypeCheck(o))) {
Expect.fail("Type-check failed");
}
}

Powered by Google App Engine
This is Rietveld 408576698