Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: pkg/unittest/lib/src/collection_matchers.dart

Issue 12391076: Tweak mismatch description message to check for Iterable, not Collection. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
return mismatchDescription.
addDescriptionOf(item).
- add(' not a collection');
+ add(' not an Iterable');
} else {
return super.describeMismatch(item, mismatchDescription, matchState,
verbose);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698