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

Unified Diff: tests/corelib/list_last_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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_iterators_test.dart ('k') | tests/corelib/list_removeat_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/list_last_test.dart
diff --git a/tests/corelib/list_first_test.dart b/tests/corelib/list_last_test.dart
similarity index 76%
copy from tests/corelib/list_first_test.dart
copy to tests/corelib/list_last_test.dart
index cdd718be90ee742f5e1a610a03ebca1a280e0129..4d9b53a9adabfee786c4d21fb21bfa423293b116 100644
--- a/tests/corelib/list_first_test.dart
+++ b/tests/corelib/list_last_test.dart
@@ -4,9 +4,9 @@
void test(List list) {
if (list.isEmpty) {
- Expect.throws(() => list.first, (e) => e is RangeError);
+ Expect.throws(() => list.last, (e) => e is StateError);
} else {
- Expect.equals(list[0], list.first);
+ Expect.equals(list[list.length - 1], list.last);
}
}
« no previous file with comments | « tests/corelib/list_iterators_test.dart ('k') | tests/corelib/list_removeat_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698