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); |
} |
} |