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

Unified Diff: tests/language/function_subtype_typearg5_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_subtype_typearg5_test.dart
diff --git a/tests/language/function_subtype_typearg5_test.dart b/tests/language/function_subtype_typearg5_test.dart
index a20e4228a51e79509ba639bf9d7581347d9e6f1d..03529e71fc67511fe90e65d0009930e00627dc20 100644
--- a/tests/language/function_subtype_typearg5_test.dart
+++ b/tests/language/function_subtype_typearg5_test.dart
@@ -9,27 +9,29 @@
import 'package:expect/expect.dart';
typedef A F<A>(A arg1, A arg2);
-typedef B G<A,B>(B arg1, B arg2);
+typedef B G<A, B>(B arg1, B arg2);
typedef Set<A> FS<A>(Set<A> arg1, Set<A> arg2);
-@NoInline() @AssumeDynamic() dyn(x) => x;
+@NoInline()
+@AssumeDynamic()
+dyn(x) => x;
class CheckEnv<X, Y> {
test(bool intX) {
Expect.isTrue(<F<X>>[] is List<F>);
Expect.isTrue(<F<X>>[] is List<F<X>>);
- Expect.isTrue(<F<X>>[] is List<G<Y,X>>);
+ Expect.isTrue(<F<X>>[] is List<G<Y, X>>);
Expect.isTrue(dyn(<F<X>>[]) is List<F>);
Expect.isTrue(dyn(<F<X>>[]) is List<F<X>>);
- Expect.isTrue(dyn(<F<X>>[]) is List<G<Y,X>>);
+ Expect.isTrue(dyn(<F<X>>[]) is List<G<Y, X>>);
Expect.isTrue(<F<X>>[] is! List<F<Y>>);
- Expect.isTrue(<F<X>>[] is! List<G<X,Y>>);
+ Expect.isTrue(<F<X>>[] is! List<G<X, Y>>);
Expect.isTrue(dyn(<F<X>>[]) is! List<F<Y>>);
- Expect.isTrue(dyn(<F<X>>[]) is! List<G<X,Y>>);
+ Expect.isTrue(dyn(<F<X>>[]) is! List<G<X, Y>>);
Expect.isTrue(dyn(<FS<X>>[]) is List<FS>);
Expect.isTrue(dyn(<FS<X>>[]) is List<FS<X>>);
@@ -42,14 +44,12 @@ class CheckEnv<X, Y> {
}
}
-
-
main() {
Expect.isTrue(<F<int>>[] is List<F<int>>);
Expect.isTrue(dyn(<F<int>>[]) is List<F<int>>);
- Expect.isTrue(<F<int>>[] is List<G<bool,int>>);
- Expect.isTrue(dyn(<F<int>>[]) is List<G<bool,int>>);
+ Expect.isTrue(<F<int>>[] is List<G<bool, int>>);
+ Expect.isTrue(dyn(<F<int>>[]) is List<G<bool, int>>);
- new CheckEnv<int,String>().test(true);
- new CheckEnv<String,int>().test(false);
+ new CheckEnv<int, String>().test(true);
+ new CheckEnv<String, int>().test(false);
}

Powered by Google App Engine
This is Rietveld 408576698