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

Unified Diff: tests/corelib/queue_test.dart

Issue 711003002: Add some ArgumentError and RangeError constructors that capture more information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/corelib/queue_test.dart
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart
index e590dce63142ad74463610464bb39e4891e45705..cb4f2c7634857bd32b5760b7e82db4b257bbf0cf 100644
--- a/tests/corelib/queue_test.dart
+++ b/tests/corelib/queue_test.dart
@@ -260,6 +260,11 @@ abstract class QueueTest {
Expect.equals(N, queue.length);
Expect.isFalse(queue.isEmpty);
+ Expect.equals(0, queue.elementAt(0));
+ Expect.equals(N - 1, queue.elementAt(N - 1));
+ Expect.throws(() { queue.elementAt(-1); });
+ Expect.throws(() { queue.elementAt(N); });
+
Iterable skip1 = queue.skip(1);
Iterable take1 = queue.take(1);
Iterable mapped = queue.map((e) => -e);

Powered by Google App Engine
This is Rietveld 408576698