OLD | NEW |
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 import 'package:kernel/type_algebra.dart'; | 4 import 'package:kernel/type_algebra.dart'; |
5 import 'package:test/test.dart'; | 5 import 'package:test/test.dart'; |
6 import 'type_parser.dart'; | 6 import 'type_parser.dart'; |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 final List<TestCase> testCases = <TestCase>[ | 9 final List<TestCase> testCases = <TestCase>[ |
10 successCase('List<T>', 'List<String>', {'T': 'String'}), | 10 successCase('List<T>', 'List<String>', {'T': 'String'}), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 if (substitution != null) { | 129 if (substitution != null) { |
130 reportFailure(testCase, 'Unification was supposed to fail'); | 130 reportFailure(testCase, 'Unification was supposed to fail'); |
131 } | 131 } |
132 } | 132 } |
133 }); | 133 }); |
134 } | 134 } |
135 if (numFailures > 0) { | 135 if (numFailures > 0) { |
136 exit(1); | 136 exit(1); |
137 } | 137 } |
138 } | 138 } |
OLD | NEW |