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

Side by Side Diff: tests/language_2/generic_function_bounds_test.dart

Issue 3008573002: Migrate test block 113 to Dart 2.0. (Closed)
Patch Set: Merge fixups Created 3 years, 3 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 'dart:math'; 5 import 'dart:math';
6 import 'package:expect/expect.dart'; 6 import 'package:expect/expect.dart';
7 7
8 void testInstantiateToBounds() { 8 void testInstantiateToBounds() {
9 f<T extends num, U extends T>() => [T, U]; 9 f<T extends num, U extends T>() => [T, U];
10 g<T extends List<U>, U extends int>() => [T, U]; 10 g<T extends List<U>, U extends int>() => [T, U];
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Expect.equals(g.runtimeType.toString(), '<T, U>(T, U) -> num'); 69 Expect.equals(g.runtimeType.toString(), '<T, U>(T, U) -> num');
70 Expect.equals(h(42, 123.0), '<T, U>(T, U) -> String'); 70 Expect.equals(h(42, 123.0), '<T, U>(T, U) -> String');
71 } 71 }
72 72
73 main() { 73 main() {
74 testInstantiateToBounds(); 74 testInstantiateToBounds();
75 testToString(); 75 testToString();
76 testChecksBound(); 76 testChecksBound();
77 testSubtype(); 77 testSubtype();
78 } 78 }
OLDNEW
« no previous file with comments | « tests/language_2/generic_field_mixin_test.dart ('k') | tests/language_2/generic_function_dcall_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698