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

Unified Diff: lib/unittest/collection_matchers.dart

Issue 10541035: Fix problems that occur in checked mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | tests/utils/unittest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/collection_matchers.dart
===================================================================
--- lib/unittest/collection_matchers.dart (revision 8355)
+++ lib/unittest/collection_matchers.dart (working copy)
@@ -107,6 +107,9 @@
return 'has too many elements (${actualLength} > ${expectedLength})';
}
List<bool> matched = new List<bool>(actualLength);
+ for (var i = 0; i < actualLength; i++) {
+ matched[i] = false;
+ }
var expectedPosition = 0;
for (var expectedElement in _expected) {
var actualPosition = 0;
« no previous file with comments | « no previous file | tests/utils/unittest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698