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'), |