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

Unified Diff: pkg/matcher/test/matchers_minified_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/iterable_matchers_test.dart ('k') | pkg/matcher/test/matchers_unminified_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/matchers_minified_test.dart
diff --git a/pkg/matcher/test/matchers_minified_test.dart b/pkg/matcher/test/matchers_minified_test.dart
index 65a35ac3bfe5dd2124849ada0845992bc2885466..4b39d427378a7509d13828403a8f871449f80505 100644
--- a/pkg/matcher/test/matchers_minified_test.dart
+++ b/pkg/matcher/test/matchers_minified_test.dart
@@ -109,6 +109,14 @@ void main() {
matches(r"Expected: empty +Actual: " + _MINIFIED_NAME + r":\[1\]"));
});
+ test('isNotEmpty', () {
+ var d = new SimpleIterable(0);
+ var e = new SimpleIterable(1);
+ shouldPass(e, isNotEmpty);
+ shouldFail(d, isNotEmpty,
+ matches(r"Expected: non-empty +Actual: " + _MINIFIED_NAME + r":\[\]"));
+ });
+
test('contains', () {
var d = new SimpleIterable(3);
shouldPass(d, contains(2));
« no previous file with comments | « pkg/matcher/test/iterable_matchers_test.dart ('k') | pkg/matcher/test/matchers_unminified_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698