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

Unified Diff: tests/language/fannkuch_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 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/language/fannkuch_test.dart
diff --git a/tests/language/fannkuch_test.dart b/tests/language/fannkuch_test.dart
index a38d34dde0703d48893cb3ac4e5c8c295e69991e..356f20f588f6538b4fc9cc5c959486942ec5ccae 100644
--- a/tests/language/fannkuch_test.dart
+++ b/tests/language/fannkuch_test.dart
@@ -8,7 +8,7 @@
class FannkuchTest {
static fannkuch(n) {
- var p = new List.fixedLength(n), q = new List.fixedLength(n), s = new List.fixedLength(n);
+ var p = new List(n), q = new List(n), s = new List(n);
var sign = 1, maxflips = 0, sum = 0, m = n - 1;
for (var i = 0; i < n; i++) { p[i] = i; q[i] = i; s[i] = i; }
do {

Powered by Google App Engine
This is Rietveld 408576698