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/generics_test.dart

Issue 3001803002: Migrate block 114 (and some of 113). (Closed)
Patch Set: Tweak app_jit status. Created 3 years, 4 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
« no previous file with comments | « tests/language/generics3_test.dart ('k') | tests/language/get_set_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generics_test.dart
diff --git a/tests/language/generics_test.dart b/tests/language/generics_test.dart
deleted file mode 100644
index 931083be0a1bccad278acf750039ccebb217db14..0000000000000000000000000000000000000000
--- a/tests/language/generics_test.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// Dart test for generic types.
-
-import "package:expect/expect.dart";
-
-class GenericsTest<T, V> implements Map<int, int> {
- static int myFunc(bool a, bool b) {
- Expect.equals(true, a);
- Expect.equals(false, b);
- return 42;
- }
-
- static void testMain() {
- int a = 1;
- int b = 2;
- int c = 3;
- int d = 4;
- Expect.equals(true, a < b);
- Expect.equals(42, myFunc(a < b, c > d));
- Map<int, int> e;
- GenericsTest<int, GenericsTest<int, int>> f;
-
- e = new Map();
- takesMapMethod(e);
- Expect.equals(2, e[0]);
- Map h = new Map<int, int>();
- }
-
- static void takesMapMethod(Map<int, int> m) {
- m[0] = 2;
- }
-
- Map<int, int> returnMap() {
- return null;
- }
-}
-
-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;
- }
-}
-
-main() {
- GenericsTest.testMain();
-}
« no previous file with comments | « tests/language/generics3_test.dart ('k') | tests/language/get_set_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698