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

Unified Diff: tests/corelib/iterable_skip_test.dart

Issue 2845933002: SkipIterable - ensure field is only initialized to a known int. (Closed)
Patch Set: fix .skip(-1) bug Created 3 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 | « sdk/lib/internal/iterable.dart ('k') | no next file » | 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 a06cb6e05289816bc64ad9937720590375ba40f1..8af142bcdf87a3c109929aa8f438fc1094fdf15d 100644
--- a/tests/corelib/iterable_skip_test.dart
+++ b/tests/corelib/iterable_skip_test.dart
@@ -252,6 +252,7 @@ main() {
testSkipTake(collection, 15, 5);
testSkipTake(collection, 20, 0);
testSkipTake(collection, 20, 5);
- Expect.throws(() => longList.skip(-1), (e) => e is RangeError);
+ Expect.throws(() => collection.skip(-1), (e) => e is RangeError);
+ Expect.throws(() => collection.skip(1).skip(-1), (e) => e is RangeError);
}
}
« no previous file with comments | « sdk/lib/internal/iterable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698