Index: tests/corelib/collection_to_string_test.dart |
diff --git a/tests/corelib/collection_to_string_test.dart b/tests/corelib/collection_to_string_test.dart |
index 268f58915ba23168be159fb63bbefe9a5caf3e19..070a561e8fe67246ac2b00413465c2fbe2b25f12 100644 |
--- a/tests/corelib/collection_to_string_test.dart |
+++ b/tests/corelib/collection_to_string_test.dart |
@@ -78,7 +78,7 @@ void smokeTest() { |
void exactTest() { |
for (int i = 0; i < NUM_TESTS; i++) { |
// Choose a size from 0 to MAX_COLLECTION_SIZE, favoring larger sizes |
- int size = Math.sqrt(random(MAX_COLLECTION_SIZE * MAX_COLLECTION_SIZE)).toInt(); |
+ int size = Math.sqrt(random(MAX_COLLECTION_SIZE * MAX_COLLECTION_SIZE)).truncate(); |
StringBuffer stringRep = new StringBuffer(); |
Object o = randomCollection(size, stringRep, exact:true); |
@@ -100,7 +100,7 @@ void exactTest() { |
void inexactTest() { |
for (int i = 0; i < NUM_TESTS; i++) { |
// Choose a size from 0 to MAX_COLLECTION_SIZE, favoring larger sizes |
- int size = Math.sqrt(random(MAX_COLLECTION_SIZE * MAX_COLLECTION_SIZE)).toInt(); |
+ int size = Math.sqrt(random(MAX_COLLECTION_SIZE * MAX_COLLECTION_SIZE)).truncate(); |
StringBuffer stringRep = new StringBuffer(); |
Object o = randomCollection(size, stringRep, exact:false); |