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

Unified Diff: tests/standalone/float_array_test.dart

Issue 13863012: Refactor List.setRange function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 7 years, 8 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 | « tests/language/list_test.dart ('k') | tests/standalone/io/echo_server_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/float_array_test.dart
diff --git a/tests/standalone/float_array_test.dart b/tests/standalone/float_array_test.dart
index d8c9ebbe7f940b9d4df7f71fa1cae8991e3a359b..562b91ece66fcc66477006debddbeef6bee013b6 100644
--- a/tests/standalone/float_array_test.dart
+++ b/tests/standalone/float_array_test.dart
@@ -41,7 +41,7 @@ void testSetRange32() {
}
// 4.0e40 is larger than the largest representable float.
- floatArray.setRange(1, 2, const [8.0, 4.0e40]);
+ floatArray.setRange(1, 3, const [8.0, 4.0e40]);
Expect.equals(20, floatArray[0]);
Expect.equals(8, floatArray[1]);
Expect.equals(double.INFINITY, floatArray[2]);
@@ -59,7 +59,7 @@ void testIndexOutOfRange32() {
});
Expect.throws(() {
- floatArray.setRange(3, 1, list);
+ floatArray.setRange(3, 4, list);
});
}
@@ -125,7 +125,7 @@ void testSetRange64() {
}
// Unlike Float32Array we can properly represent 4.0e40
- floatArray.setRange(1, 2, const [8.0, 4.0e40]);
+ floatArray.setRange(1, 3, const [8.0, 4.0e40]);
Expect.equals(20, floatArray[0]);
Expect.equals(8, floatArray[1]);
Expect.equals(4.0e40, floatArray[2]);
@@ -143,7 +143,7 @@ void testIndexOutOfRange64() {
});
Expect.throws(() {
- floatArray.setRange(3, 1, list);
+ floatArray.setRange(3, 4, list);
});
}
« no previous file with comments | « tests/language/list_test.dart ('k') | tests/standalone/io/echo_server_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698