| 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/kernel.dart'; | 4 import 'package:kernel/kernel.dart'; |
| 5 import 'package:kernel/type_algebra.dart'; | 5 import 'package:kernel/type_algebra.dart'; |
| 6 import 'type_parser.dart'; | 6 import 'type_parser.dart'; |
| 7 import 'type_unification_test.dart' show testCases; | 7 import 'type_unification_test.dart' show testCases; |
| 8 import 'package:test/test.dart'; | 8 import 'package:test/test.dart'; |
| 9 | 9 |
| 10 checkType(DartType type) { | 10 checkType(DartType type) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 main() { | 22 main() { |
| 23 for (var testCase in testCases) { | 23 for (var testCase in testCases) { |
| 24 test('$testCase', () { | 24 test('$testCase', () { |
| 25 var env = new LazyTypeEnvironment(); | 25 var env = new LazyTypeEnvironment(); |
| 26 checkType(env.parse(testCase.type1)); | 26 checkType(env.parse(testCase.type1)); |
| 27 checkType(env.parse(testCase.type2)); | 27 checkType(env.parse(testCase.type2)); |
| 28 }); | 28 }); |
| 29 } | 29 } |
| 30 } | 30 } |
| OLD | NEW |