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

Unified Diff: pkg/matcher/test/string_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/matchers_unminified_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/matcher/test/string_matchers_test.dart
diff --git a/pkg/matcher/test/string_matchers_test.dart b/pkg/matcher/test/string_matchers_test.dart
index 130364155ef46dc00856fdcf4f125e3ea0ce353c..ba96713cda03312978f0c6443d9bc2b7a81f495b 100644
--- a/pkg/matcher/test/string_matchers_test.dart
+++ b/pkg/matcher/test/string_matchers_test.dart
@@ -24,6 +24,13 @@ void main() {
shouldFail('a', isEmpty, "Expected: empty Actual: 'a'");
});
+ test('isNotEmpty', () {
+ shouldFail('', isNotEmpty, "Expected: non-empty Actual: ''");
+ shouldFail(null, isNotEmpty, "Expected: non-empty Actual: <null>");
+ shouldFail(0, isNotEmpty, "Expected: non-empty Actual: <0>");
+ shouldPass('a', isNotEmpty);
+ });
+
test('equalsIgnoringCase', () {
shouldPass('hello', equalsIgnoringCase('HELLO'));
shouldFail('hi', equalsIgnoringCase('HELLO'),
« no previous file with comments | « pkg/matcher/test/matchers_unminified_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698