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

Unified Diff: pkg/matcher/test/iterable_matchers_test.dart

Issue 763783003: Add isNotEmpty to core_matchers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style fixes Created 6 years 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 | « pkg/matcher/test/core_matchers_test.dart ('k') | pkg/matcher/test/matchers_minified_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/iterable_matchers_test.dart
diff --git a/pkg/matcher/test/iterable_matchers_test.dart b/pkg/matcher/test/iterable_matchers_test.dart
index 4570d52616480ca9777d75d6e978f836be58df61..91d5335798f7aa2db9d6473be2923234775ba0b3 100644
--- a/pkg/matcher/test/iterable_matchers_test.dart
+++ b/pkg/matcher/test/iterable_matchers_test.dart
@@ -17,6 +17,11 @@ void main() {
shouldFail([1], isEmpty, "Expected: empty Actual: [1]");
});
+ test('isNotEmpty', () {
+ shouldFail([], isNotEmpty, "Expected: non-empty Actual: []");
+ shouldPass([1], isNotEmpty);
+ });
+
test('contains', () {
var d = [1, 2];
shouldPass(d, contains(1));
« no previous file with comments | « pkg/matcher/test/core_matchers_test.dart ('k') | pkg/matcher/test/matchers_minified_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698