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

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

Issue 14173003: Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « pkg/unittest/lib/src/collection_matchers.dart ('k') | pkg/unittest/lib/src/iterable_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/core_matchers.dart
diff --git a/pkg/unittest/lib/src/core_matchers.dart b/pkg/unittest/lib/src/core_matchers.dart
index 236da4e5fb69dcb9ce987870b44b6af0e15433d1..1a8143c7a21ce115188c5fae0e9331d22c4c1595 100644
--- a/pkg/unittest/lib/src/core_matchers.dart
+++ b/pkg/unittest/lib/src/core_matchers.dart
@@ -599,7 +599,7 @@ class _HasLength extends BaseMatcher {
* Returns a matcher that matches if the match argument contains
* the expected value. For [String]s this means substring matching;
* for [Map]s it means the map has the key, and for [Iterable]s
- * (including [Collection]s) it means the iterable has a matching
+ * (including [Iterable]s) it means the iterable has a matching
* element. In the case of iterables, [expected] can itself be a
* matcher.
*/
@@ -645,7 +645,7 @@ class _In extends BaseMatcher {
bool matches(item, MatchState matchState) {
if (_expected is String) {
return _expected.indexOf(item) >= 0;
- } else if (_expected is Collection) {
+ } else if (_expected is Iterable) {
return _expected.any((e) => e == item);
} else if (_expected is Map) {
return _expected.containsKey(item);
« no previous file with comments | « pkg/unittest/lib/src/collection_matchers.dart ('k') | pkg/unittest/lib/src/iterable_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698