Chromium Code Reviews| Index: pkg/unittest/lib/src/collection_matchers.dart |
| =================================================================== |
| --- pkg/unittest/lib/src/collection_matchers.dart (revision 19421) |
| +++ pkg/unittest/lib/src/collection_matchers.dart (working copy) |
| @@ -189,10 +189,10 @@ |
| const _CollectionMatcher(); |
| Description describeMismatch(item, Description mismatchDescription, |
| MatchState matchState, bool verbose) { |
| - if (item is !Collection) { |
| + if (item is !Iterable) { |
|
Siggi Cherem (dart-lang)
2013/03/04 22:13:55
nit: this should be 'is! Iterable' (move the ! bef
gram
2013/03/04 22:23:25
Done.
|
| return mismatchDescription. |
| addDescriptionOf(item). |
| - add(' not a collection'); |
| + add(' not an Iterable'); |
| } else { |
| return super.describeMismatch(item, mismatchDescription, matchState, |
| verbose); |