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

Unified Diff: tests/corelib/list_reversed_test.dart

Issue 13548002: Add Iterable.fold (and Stream.fold) which replace `reduce`. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
Index: tests/corelib/list_reversed_test.dart
diff --git a/tests/corelib/list_reversed_test.dart b/tests/corelib/list_reversed_test.dart
index 6055b3ae3ebda2e12f3a688195a8ff15533f51bb..99f7b9983db3d83829d08b5e26e658da4ac888d8 100644
--- a/tests/corelib/list_reversed_test.dart
+++ b/tests/corelib/list_reversed_test.dart
@@ -107,6 +107,7 @@ void testOperations() {
testOp((i) => i.max(), "max");
testOp((i) => i.min(), "min");
testOp((i) => i.reduce(0, (a, b) => a + b), "reduce-sum");
Lasse Reichstein Nielsen 2013/04/04 08:35:18 Remove reduce.
floitsch 2013/04/05 16:10:03 ditto: I prefer getting an error, that I need to u
+ testOp((i) => i.fold(0, (a, b) => a + b), "fold-sum");
testOp((i) => i.join("-"), "join-");
testOp((i) => i.join(""), "join");
testOp((i) => i.join(), "join-null");

Powered by Google App Engine
This is Rietveld 408576698