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

Unified Diff: pkg/dev_compiler/test/codegen/corelib/list_map_test.dart

Issue 2356413002: Fix tests (Closed)
Patch Set: Created 4 years, 3 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: pkg/dev_compiler/test/codegen/corelib/list_map_test.dart
diff --git a/pkg/dev_compiler/test/codegen/corelib/list_map_test.dart b/pkg/dev_compiler/test/codegen/corelib/list_map_test.dart
index 947f40ad3d3cc5f5d723fbb556599cf4b74ceaea..a5f48a8f1ac008a3bba6c6357f9462ac38f6f7a3 100644
--- a/pkg/dev_compiler/test/codegen/corelib/list_map_test.dart
+++ b/pkg/dev_compiler/test/codegen/corelib/list_map_test.dart
@@ -52,7 +52,7 @@ void testOperations() {
void testList(List list) {
var throws = const ThrowMarker();
- List mappedList = new List(list.length);
+ var mappedList = new List<int>(list.length);
for (int i = 0; i < list.length; i++) {
mappedList[i] = rev(list[i]);
}
@@ -78,7 +78,7 @@ void testOperations() {
}
}
- void testOp(operation(Iterable mappedList), name) {
+ void testOp(operation(Iterable<int> mappedList), name) {
var expect;
try {
expect = operation(mappedList);
@@ -115,7 +115,7 @@ void testOperations() {
testOp((i) => i.every((n) => n < 5), "every<5");
testOp((i) => i.every((n) => n < 10), "every<10");
testOp((i) => i.reduce((a, b) => a + b), "reduce-sum");
- testOp((i) => i.fold(0, (a, b) => a + b), "fold-sum");
+ testOp((i) => i.fold/*<int>*/(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