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

Unified Diff: pkg/unittest/test/matchers_test.dart

Issue 20172003: Replace someElement with anyElement. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/unittest/test/matchers_test.dart
===================================================================
--- pkg/unittest/test/matchers_test.dart (revision 25450)
+++ pkg/unittest/test/matchers_test.dart (working copy)
@@ -450,11 +450,11 @@
"at index 2");
});
- test('someElement', () {
+ test('anyElement', () {
var d = [1, 2];
var e = [1, 1, 1];
- shouldPass(d, someElement(2));
- shouldFail(e, someElement(2),
+ shouldPass(d, anyElement(2));
+ shouldFail(e, anyElement(2),
"Expected: some element <2> Actual: [1, 1, 1]");
});

Powered by Google App Engine
This is Rietveld 408576698