| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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:matcher/matcher.dart'; | 5 import 'package:matcher/matcher.dart'; |
| 6 import 'package:test/test.dart' show test, group; | 6 import 'package:test/test.dart' show test, group; |
| 7 | 7 |
| 8 import 'test_utils.dart'; | 8 import 'test_utils.dart'; |
| 9 | 9 |
| 10 class BadCustomMatcher extends CustomMatcher { | 10 class BadCustomMatcher extends CustomMatcher { |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 }); | 243 }); |
| 244 | 244 |
| 245 test("Custom Matcher Exception", () { | 245 test("Custom Matcher Exception", () { |
| 246 shouldFail( | 246 shouldFail( |
| 247 "a", | 247 "a", |
| 248 new BadCustomMatcher(), | 248 new BadCustomMatcher(), |
| 249 allOf([ | 249 allOf([ |
| 250 contains("Expected: feature {1: 'a'} "), | 250 contains("Expected: feature {1: 'a'} "), |
| 251 contains("Actual: 'a' "), | 251 contains("Actual: 'a' "), |
| 252 contains("Which: threw 'Exception: bang' "), | 252 contains("Which: threw 'Exception: bang' "), |
| 253 contains("test/core_matchers_test.dart "), | |
| 254 contains("package:test ") | |
| 255 ])); | 253 ])); |
| 256 }); | 254 }); |
| 257 } | 255 } |
| OLD | NEW |