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

Unified Diff: tests/language/issue13474_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/issue13474_test.dart
diff --git a/tests/language/issue13474_test.dart b/tests/language/issue13474_test.dart
index f35f5b604d082ef52b04dbe36f0cd605ae7c72e3..61eddf94631ccfb1757d3e95c402ebc38e53b85f 100644
--- a/tests/language/issue13474_test.dart
+++ b/tests/language/issue13474_test.dart
@@ -7,14 +7,23 @@ import "package:expect/expect.dart";
main() {
var a;
- Expect.throws(() { true && (a = 5); }, (error) => error is TypeError);
- Expect.throws(() { (a = 5) && true; }, (error) => error is TypeError);
- Expect.throws(() { false || (a = 5); }, (error) => error is TypeError);
- Expect.throws(() { (a = 5) || false; }, (error) => error is TypeError);
- Expect.throws(() { (a = 5) || true; }, (error) => error is TypeError);
+ Expect.throws(() {
+ true && (a = 5);
+ }, (error) => error is TypeError);
+ Expect.throws(() {
+ (a = 5) && true;
+ }, (error) => error is TypeError);
+ Expect.throws(() {
+ false || (a = 5);
+ }, (error) => error is TypeError);
+ Expect.throws(() {
+ (a = 5) || false;
+ }, (error) => error is TypeError);
+ Expect.throws(() {
+ (a = 5) || true;
+ }, (error) => error is TypeError);
// No exceptions thrown.
false && (a = 5);
true || (a = 5);
}
-

Powered by Google App Engine
This is Rietveld 408576698