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

Unified Diff: pkg/collection/test/wrapper_test.dart

Issue 315173005: Add "last" setter to List. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/collection/test/wrapper_test.dart
diff --git a/pkg/collection/test/wrapper_test.dart b/pkg/collection/test/wrapper_test.dart
index 5858aaf58fa6e64c6ba5aa7d4b8c389a54341bbc..414c8f74743ef79cf48aae117f2ef382e6c05a51 100644
--- a/pkg/collection/test/wrapper_test.dart
+++ b/pkg/collection/test/wrapper_test.dart
@@ -197,6 +197,7 @@ void main() {
expect.indexOf(val, 4).equals.indexOf(val, 4);
expect.insert(4, val).equals.insert(4, val);
expect.insertAll(4, [val]).equals.insertAll(4, [val]);
+ (expect..last = 5).equals.last = 5;
expect.lastIndexOf(val, null).equals.lastIndexOf(val);
expect.lastIndexOf(val, 4).equals.lastIndexOf(val, 4);
(expect..length = 4).equals.length = 4;

Powered by Google App Engine
This is Rietveld 408576698