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; |
} |