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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/mock.dart ('k') | pkg/unittest/lib/src/config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/collection_matchers.dart
diff --git a/pkg/unittest/lib/src/collection_matchers.dart b/pkg/unittest/lib/src/collection_matchers.dart
index db13658b19b70e0752e7d0764d391370156536a5..b261226948deab2e362fcfafc4f1a2e88577cffc 100644
--- a/pkg/unittest/lib/src/collection_matchers.dart
+++ b/pkg/unittest/lib/src/collection_matchers.dart
@@ -63,7 +63,7 @@ class _SomeElement extends _CollectionMatcher {
_SomeElement(this._matcher);
bool matches(item, MatchState matchState) {
- return item.some( (e) => _matcher.matches(e, matchState) );
+ return item.any((e) => _matcher.matches(e, matchState));
}
Description describe(Description description) =>
@@ -143,7 +143,7 @@ class _UnorderedEquals extends BaseMatcher {
} else if (expectedLength < actualLength) {
return 'has too many elements (${actualLength} > ${expectedLength})';
}
- List<bool> matched = new List<bool>(actualLength);
+ List<bool> matched = new List<bool>.fixedLength(actualLength);
for (var i = 0; i < actualLength; i++) {
matched[i] = false;
}
« no previous file with comments | « pkg/unittest/lib/mock.dart ('k') | pkg/unittest/lib/src/config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698