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

Unified Diff: tests/corelib/collection_test.dart

Issue 14135005: Fix 'collection' tests and co19 dartc/dart2js status files. (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 | « tests/corelib/collection_length_test.dart ('k') | tests/corelib/collection_to_string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/collection_test.dart
diff --git a/tests/corelib/collection_test.dart b/tests/corelib/collection_test.dart
index d258fe64b4dfd852d2f4a094f60f07589cad4696..680e20ab7268cb42862c6c961168a9776f246c39 100644
--- a/tests/corelib/collection_test.dart
+++ b/tests/corelib/collection_test.dart
@@ -8,13 +8,13 @@ import "package:expect/expect.dart";
import 'dart:collection' show Queue;
class CollectionTest {
- CollectionTest(Collection collection) {
- testFold(collection);
+ CollectionTest(Iterable iterable) {
+ testFold(iterable);
}
- void testFold(Collection collection) {
- Expect.equals(28, collection.fold(0, (prev, element) => prev + element));
- Expect.equals(3024, collection.fold(1, (prev, element) => prev * element));
+ void testFold(Iterable iterable) {
+ Expect.equals(28, iterable.fold(0, (prev, element) => prev + element));
+ Expect.equals(3024, iterable.fold(1, (prev, element) => prev * element));
}
}
« no previous file with comments | « tests/corelib/collection_length_test.dart ('k') | tests/corelib/collection_to_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698