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

Unified Diff: tests/language/function_type_alias4_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/function_type_alias4_test.dart
diff --git a/tests/language/function_type_alias4_test.dart b/tests/language/function_type_alias4_test.dart
index b517423990bce5a5acb1b4676bed90dd6ca73807..0240afc7122259f2d8ce420b140e96fbf78d4487 100644
--- a/tests/language/function_type_alias4_test.dart
+++ b/tests/language/function_type_alias4_test.dart
@@ -6,17 +6,14 @@
import "package:expect/expect.dart";
-typedef bool F<bool>(bool a); // 'bool' is not the boolean type.
+typedef bool F<bool>(bool a); // 'bool' is not the boolean type.
-bool bar(bool a) {
-}
+bool bar(bool a) {}
-int baz(int a) {
-}
+int baz(int a) {}
class A<T> {
- T foo(T a) {
- }
+ T foo(T a) {}
}
main() {
@@ -24,8 +21,8 @@ main() {
Expect.isTrue(baz is F);
Expect.isTrue(bar is F<bool>);
Expect.isTrue(baz is F<int>);
- Expect.isTrue(bar is !F<int>);
- Expect.isTrue(baz is !F<bool>);
+ Expect.isTrue(bar is! F<int>);
+ Expect.isTrue(baz is! F<bool>);
var b = new A<bool>();
var i = new A<int>();
@@ -33,6 +30,6 @@ main() {
Expect.isTrue(i.foo is F);
Expect.isTrue(b.foo is F<bool>);
Expect.isTrue(i.foo is F<int>);
- Expect.isTrue(b.foo is !F<int>);
- Expect.isTrue(i.foo is !F<bool>);
+ Expect.isTrue(b.foo is! F<int>);
+ Expect.isTrue(i.foo is! F<bool>);
}

Powered by Google App Engine
This is Rietveld 408576698