aboutsummaryrefslogtreecommitdiff
path: root/t/yesno.t
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-09 12:54:13 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-09 12:54:35 -0400
commitb7351daacd0d4a041a51b43d99b7bf589de54f53 (patch)
tree2f25cac3499875a37c6a1aa85e7f3453b2d5d3ef /t/yesno.t
parent96682e3084993428f4de384f5087cffdc29f1710 (diff)
downloadikiwiki-b7351daacd0d4a041a51b43d99b7bf589de54f53.tar
ikiwiki-b7351daacd0d4a041a51b43d99b7bf589de54f53.tar.gz
conditional: use yesno
Diffstat (limited to 't/yesno.t')
-rwxr-xr-xt/yesno.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/yesno.t b/t/yesno.t
index 60a8c071d..8770390a1 100755
--- a/t/yesno.t
+++ b/t/yesno.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 10;
+use Test::More tests => 11;
BEGIN { use_ok("IkiWiki"); }
@@ -19,3 +19,5 @@ ok(IkiWiki::yesno("NO") == 0);
ok(IkiWiki::yesno("1") == 1);
ok(IkiWiki::yesno("0") == 0);
ok(IkiWiki::yesno("mooooooooooo") == 0);
+
+ok(IkiWiki::yesno(undef) == 0);