]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - t/21-is.t
Only is() should treat undef specially
[perl/modules/Test-Leaner.git] / t / 21-is.t
index 97dc57a627de317f4278abc9f32bf6028fe7dbdc..2059fca2dc8baa86f4a432334276e846966bf1e5 100644 (file)
--- a/t/21-is.t
+++ b/t/21-is.t
@@ -5,11 +5,12 @@ use warnings;
 
 use Test::Leaner;
 
-plan tests => 7;
+plan tests => 8;
 
 is   undef, undef, 'undef is undef';
-isnt 1,     undef, 'one is not undef';
-isnt undef, 1,     'undef is not one';
+isnt 0,     undef, 'zero is not undef';
+isnt undef, 0,     'undef is not zero';
+is   0,     0,     'zero is zero';
 is   1,     1,     'one is one';
 isnt '1.0', 1,     '1.0 is not one string-wise';