Chromium Code Reviews| Index: pkg/unittest/lib/src/basematcher.dart |
| =================================================================== |
| --- pkg/unittest/lib/src/basematcher.dart (revision 23039) |
| +++ pkg/unittest/lib/src/basematcher.dart (working copy) |
| @@ -31,6 +31,14 @@ |
| const BaseMatcher(); |
| /** |
| + * Whether failures should include the actual value in the output. |
| + * The reason is passed in so that it can be inspected if necessary |
| + * for some more complex cases. |
| + */ |
| + bool includeActual(reason) => !reason.toString().startsWith('was '); |
|
Siggi Cherem (dart-lang)
2013/05/23 00:43:47
2 comments:
a) how about storing a boolean propert
|
| + |
| + |
| + /** |
| * Tests the matcher against a given [item] |
| * and return true if the match succeeds; false otherwise. |
| * [matchState] may be used to return additional info for |