# $depends_simple{$page}{lc $i} |= $i{$i};
# }
#}
- print STDERR "warning: use of add_depends; influences not tracked\n";
+ print STDERR "warning: use of add_depends by ".caller()."; influences not tracked\n";
$depends{$page}{$pagespec} |= $deptype;
return 1;
}
my $result=0;
- if ((exists $params{all} && lc $params{all} eq "no") ||
+ if (! IkiWiki::yesno($params{all}) ||
# An optimisation to avoid needless looping over every page
# and adding of dependencies for simple uses of some of the
# tests.
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 10;
+use Test::More tests => 11;
BEGIN { use_ok("IkiWiki"); }
ok(IkiWiki::yesno("1") == 1);
ok(IkiWiki::yesno("0") == 0);
ok(IkiWiki::yesno("mooooooooooo") == 0);
+
+ok(IkiWiki::yesno(undef) == 0);