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 library kernel.type_substitute_bounds_test; | 4 library kernel.type_substitute_bounds_test; |
5 | 5 |
6 import 'package:kernel/kernel.dart'; | 6 import 'package:kernel/kernel.dart'; |
7 import 'package:kernel/type_algebra.dart'; | 7 import 'package:kernel/type_algebra.dart'; |
8 import 'package:test/test.dart'; | 8 import 'package:test/test.dart'; |
9 import 'type_parser.dart'; | 9 import 'type_parser.dart'; |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 var substituted = Substitution | 75 var substituted = Substitution |
76 .fromUpperAndLowerBounds(upperBounds, lowerBounds) | 76 .fromUpperAndLowerBounds(upperBounds, lowerBounds) |
77 .substituteType(type); | 77 .substituteType(type); |
78 var expected = environment.parse(testCase.expected); | 78 var expected = environment.parse(testCase.expected); |
79 if (substituted != expected) { | 79 if (substituted != expected) { |
80 fail('Expected `$expected` but got `$substituted`'); | 80 fail('Expected `$expected` but got `$substituted`'); |
81 } | 81 } |
82 }); | 82 }); |
83 } | 83 } |
84 } | 84 } |
OLD | NEW |