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

Unified Diff: tests/language/list_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/corelib/list_set_range_test.dart ('k') | tests/standalone/float_array_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/list_test.dart
diff --git a/tests/language/list_test.dart b/tests/language/list_test.dart
index a0a12ec3bbe05cdcba60655266d63b51d9518b97..d3afdf8be822999746a285f82d56e606a396466c 100644
--- a/tests/language/list_test.dart
+++ b/tests/language/list_test.dart
@@ -54,17 +54,17 @@ class ListTest {
Expect.throws(() {
List a = new List(4);
- a.setRange(1, 1, a, null);
+ a.setRange(1, 2, a, null);
});
Expect.throws(() {
List a = new List(4);
- a.setRange(1, 1, const [1, 2, 3, 4], null);
+ a.setRange(1, 2, const [1, 2, 3, 4], null);
});
Expect.throws(() {
List a = new List(4);
- a.setRange(10, 1, a, 1);
+ a.setRange(10, 11, a, 1);
}, (e) => e is RangeError);
a = new List(4);
« no previous file with comments | « tests/corelib/list_set_range_test.dart ('k') | tests/standalone/float_array_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698