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

Side by Side Diff: tests/language/generic_method_types_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 typedef O Convert<I, O>(I input); 7 typedef O Convert<I, O>(I input);
8 typedef Other(a, b); 8 typedef Other(a, b);
9 9
10 class Mixin<E> { 10 class Mixin<E> {
(...skipping 26 matching lines...) Expand all
37 37
38 test3() { 38 test3() {
39 Expect.isTrue(convert is Convert); 39 Expect.isTrue(convert is Convert);
40 Expect.isTrue(convert is Convert<String, String>); 40 Expect.isTrue(convert is Convert<String, String>);
41 Expect.isTrue(convert is Convert<String, int>); 41 Expect.isTrue(convert is Convert<String, int>);
42 Expect.isTrue(convert is Convert<int, String>); 42 Expect.isTrue(convert is Convert<int, String>);
43 Expect.isFalse(convert is Other); 43 Expect.isFalse(convert is Other);
44 } 44 }
45 45
46 main() { 46 main() {
47 test1(); /// 01: ok 47 test1(); //# 01: ok
48 test2(); /// 02: ok 48 test2(); //# 02: ok
49 test3(); /// 03: ok 49 test3(); //# 03: ok
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698