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

Unified Diff: tests/corelib_strong/shuffle_test.dart

Issue 2683893002: Make corelib_strong tests strong-mode compliant (Closed)
Patch Set: Created 3 years, 10 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_strong/shuffle_test.dart
diff --git a/tests/corelib_strong/shuffle_test.dart b/tests/corelib_strong/shuffle_test.dart
index c221c83b89167be8472573b9343f7577789222f1..7f67911d895d03d85ca1d9fb2975b79dfe366d80 100644
--- a/tests/corelib_strong/shuffle_test.dart
+++ b/tests/corelib_strong/shuffle_test.dart
@@ -95,7 +95,7 @@ void testShuffle(list) {
// Checks that the "random" argument to shuffle is used.
testRandom() {
- List randomNums = [37, 87, 42, 157, 252, 17];
+ List<int> randomNums = [37, 87, 42, 157, 252, 17];
List numbers = new List.generate(25, (x) => x);
List l1 = numbers.toList()..shuffle(new MockRandom(randomNums));
for (int i = 0; i < 50; i++) {

Powered by Google App Engine
This is Rietveld 408576698