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

Unified Diff: tests/corelib/iterable_skip_test.dart

Issue 17020004: State that skip/take does not accept negative arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « sdk/lib/core/iterable.dart ('k') | tests/corelib/iterable_take_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/iterable_skip_test.dart
diff --git a/tests/corelib/iterable_skip_test.dart b/tests/corelib/iterable_skip_test.dart
index 2910d3bc0d2dc612b1126595f18a734cd8662a6f..59d604dbf6c5328e0b953a1ba48195e387741052 100644
--- a/tests/corelib/iterable_skip_test.dart
+++ b/tests/corelib/iterable_skip_test.dart
@@ -254,5 +254,6 @@ main() {
testSkipTake(collection, 15, 5);
testSkipTake(collection, 20, 0);
testSkipTake(collection, 20, 5);
+ Expect.throws(() => longList.skip(-1), (e) => e is RangeError);
}
}
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | tests/corelib/iterable_take_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698