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

Unified Diff: tests/language/isnot_malformed_type_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/isnot_malformed_type_test.dart
diff --git a/tests/language/isnot_malformed_type_test.dart b/tests/language/isnot_malformed_type_test.dart
index 867e9f7b9d1dae62c83692656b3d96422af62511..147ffe64f8e90f306b80ea23404b879ef3cf27f1 100644
--- a/tests/language/isnot_malformed_type_test.dart
+++ b/tests/language/isnot_malformed_type_test.dart
@@ -6,9 +6,9 @@ import 'package:expect/expect.dart';
f(obj) {
// 'Baz' is not loaded, throws a type error on test.
- return (obj is !Baz);
+ return (obj is! Baz);
}
-main () {
+main() {
Expect.throws(() => f(null), (e) => e is TypeError);
}

Powered by Google App Engine
This is Rietveld 408576698