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

Unified Diff: tests/language_strong/generics_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/generics_test.dart
diff --git a/tests/language_strong/generics_test.dart b/tests/language_strong/generics_test.dart
index dc240bd665729e328dfc133e21a19255a0906f1f..931083be0a1bccad278acf750039ccebb217db14 100644
--- a/tests/language_strong/generics_test.dart
+++ b/tests/language_strong/generics_test.dart
@@ -5,7 +5,7 @@
import "package:expect/expect.dart";
-class GenericsTest<T,V> implements Map<int, int> {
+class GenericsTest<T, V> implements Map<int, int> {
static int myFunc(bool a, bool b) {
Expect.equals(true, a);
Expect.equals(false, b);
@@ -17,8 +17,8 @@ class GenericsTest<T,V> implements Map<int, int> {
int b = 2;
int c = 3;
int d = 4;
- Expect.equals(true, a<b);
- Expect.equals(42, myFunc(a<b, c> d));
+ Expect.equals(true, a < b);
+ Expect.equals(42, myFunc(a < b, c > d));
Map<int, int> e;
GenericsTest<int, GenericsTest<int, int>> f;
@@ -37,22 +37,14 @@ class GenericsTest<T,V> implements Map<int, int> {
}
}
-class LongGeneric<A, B, C> {
-}
+class LongGeneric<A, B, C> {}
class LongerGeneric<A, B, C, D, E, F, G, H, I, J> {
void func() {
- LongGeneric<String,
- A,
- LongGeneric<C, List<E>, Map<G, Map<I, J>>>> id;
-
- LongGeneric<
- num,
- Map<int, int>,
- LongGeneric<
- C,
- List<E>,
- Map<G, LongGeneric<I, J, List<A>>>>> id2;
+ LongGeneric<String, A, LongGeneric<C, List<E>, Map<G, Map<I, J>>>> id;
+
+ LongGeneric<num, Map<int, int>,
+ LongGeneric<C, List<E>, Map<G, LongGeneric<I, J, List<A>>>>> id2;
}
}

Powered by Google App Engine
This is Rietveld 408576698