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

Unified Diff: tests/corelib/list_map_test.dart

Issue 14071002: Added new version of reduce. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed more uses of max, and a few bugs. 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
Index: tests/corelib/list_map_test.dart
diff --git a/tests/corelib/list_map_test.dart b/tests/corelib/list_map_test.dart
index bd0e62d999ad9fd34257db32738c888d62e3a850..8bd05eb1c64969e2e3f3f7da753315797793ecd2 100644
--- a/tests/corelib/list_map_test.dart
+++ b/tests/corelib/list_map_test.dart
@@ -114,9 +114,7 @@ void testOperations() {
testOp((i) => i.any((n) => n < 10), "any<10");
testOp((i) => i.every((n) => n < 5), "every<5");
testOp((i) => i.every((n) => n < 10), "every<10");
- testOp((i) => i.max(), "max");
- testOp((i) => i.min(), "min");
- testOp((i) => i.reduce(0, (a, b) => a + b), "reduce-sum");
+ testOp((i) => i.reduce((a, b) => a + b), "reduce-sum");
testOp((i) => i.fold(0, (a, b) => a + b), "fold-sum");
testOp((i) => i.join("-"), "join-");
testOp((i) => i.join(""), "join");

Powered by Google App Engine
This is Rietveld 408576698