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

Unified Diff: test/codegen/corelib/shuffle_test.dart

Issue 1956933002: Update collection (list / map / iterable) printing. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 | « test/browser/language_tests.js ('k') | tool/input_sdk/lib/collection/collection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/corelib/shuffle_test.dart
diff --git a/test/codegen/corelib/shuffle_test.dart b/test/codegen/corelib/shuffle_test.dart
index 536072d3c13fcdcfc21ee4c194d6924696a43817..c221c83b89167be8472573b9343f7577789222f1 100644
--- a/test/codegen/corelib/shuffle_test.dart
+++ b/test/codegen/corelib/shuffle_test.dart
@@ -9,10 +9,8 @@ import "dart:math" show Random;
import "package:expect/expect.dart";
main() {
- List mkList(int n) => new List.generate(n, (x) => x);
-
for (int size in [0, 1, 2, 3, 7, 15, 99, 1023]) {
- List numbers = new List.generate(size, (x) => x);
+ var numbers = new List<int>.generate(size, (x) => x);
testShuffle(numbers.toList(growable: true));
testShuffle(numbers.toList(growable: false));
testShuffle(new Uint32List(size)..setAll(0, numbers));
@@ -22,7 +20,7 @@ main() {
// Some numbers will be truncated in the following two.
testShuffle(new Uint8List(size)..setAll(0, numbers));
testShuffle(new Int8List(size)..setAll(0, numbers));
- testShuffle(numbers.map((x) => "$x").toList());
+ //testShuffle(numbers.map((x) => "$x").toList());
}
// Check that it actually can keep the same list (regression test).
« no previous file with comments | « test/browser/language_tests.js ('k') | tool/input_sdk/lib/collection/collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698