Chromium Code Reviews| Index: pkg/unittest/lib/src/expect.dart |
| =================================================================== |
| --- pkg/unittest/lib/src/expect.dart (revision 23039) |
| +++ pkg/unittest/lib/src/expect.dart (working copy) |
| @@ -144,7 +144,7 @@ |
| description.add(' But: ') |
| .add(mismatchDescription.toString()).add('.\n'); |
| - if (!mismatchDescription.toString().startsWith("was ")) { |
| + if (matcher.includeActual(mismatchDescription)) { |
| description.add('Actual: ').addDescriptionOf(actual); |
| } |
| if (reason != null) { |