aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2011-03-04 14:50:56 +0100
committerJoey Hess <joey@kitenet.net>2011-03-04 11:23:10 -0400
commit9ef5139918dbe3f4cf0b3310c76dd31090925406 (patch)
tree92a5c5a9261d61a7b1a7ba0d81469fd6cb29c6e0 /t
parent899b8c80a08ef4bf4ebc177045e86859fbef554f (diff)
downloadikiwiki-9ef5139918dbe3f4cf0b3310c76dd31090925406.tar
ikiwiki-9ef5139918dbe3f4cf0b3310c76dd31090925406.tar.gz
get rid of diag explain again
Diffstat (limited to 't')
-rwxr-xr-xt/autoindex.t16
-rwxr-xr-xt/tag.t4
2 files changed, 10 insertions, 10 deletions
diff --git a/t/autoindex.t b/t/autoindex.t
index b38be8313..d16e44ca8 100755
--- a/t/autoindex.t
+++ b/t/autoindex.t
@@ -75,8 +75,8 @@ is($autofiles{"deleted.mdwn"}{plugin}, "autoindex");
%pages = ();
@del = ();
IkiWiki::gen_autofile("deleted.mdwn", \%pages, \@del);
-is_deeply(\%pages, {}) || diag explain \%pages;
-is_deeply(\@del, []) || diag explain \@del;
+is_deeply(\%pages, {});
+is_deeply(\@del, []);
ok(! -f "t/tmp/deleted.mdwn");
# this page is tried as an autofile, but because it'll be in @del, it's not
@@ -86,8 +86,8 @@ ok(! exists $wikistate{autoindex}{autofile}{"gone.mdwn"});
@del = ("gone.mdwn");
is($autofiles{"gone.mdwn"}{plugin}, "autoindex");
IkiWiki::gen_autofile("gone.mdwn", \%pages, \@del);
-is_deeply(\%pages, {}) || diag explain \%pages;
-is_deeply(\@del, ["gone.mdwn"]) || diag explain \@del;
+is_deeply(\%pages, {});
+is_deeply(\@del, ["gone.mdwn"]);
ok(! -f "t/tmp/gone.mdwn");
# this page does not exist and has no reason to be re-created, but we no longer
@@ -116,8 +116,8 @@ ok(! exists $wikistate{autoindex}{autofile}{"tags.mdwn"});
@del = ();
is($autofiles{"tags.mdwn"}{plugin}, "autoindex");
IkiWiki::gen_autofile("tags.mdwn", \%pages, \@del);
-is_deeply(\%pages, {"t/tmp/tags" => 1}) || diag explain \%pages;
-is_deeply(\@del, []) || diag explain \@del;
+is_deeply(\%pages, {"t/tmp/tags" => 1});
+is_deeply(\@del, []);
ok(! -s "t/tmp/tags.mdwn");
ok(-s "t/tmp/.ikiwiki/transient/tags.mdwn");
@@ -127,8 +127,8 @@ ok(! exists $wikistate{autoindex}{autofile}{"attached.mdwn"});
@del = ();
is($autofiles{"attached.mdwn"}{plugin}, "autoindex");
IkiWiki::gen_autofile("attached.mdwn", \%pages, \@del);
-is_deeply(\%pages, {"t/tmp/attached" => 1}) || diag explain \%pages;
-is_deeply(\@del, []) || diag explain \@del;
+is_deeply(\%pages, {"t/tmp/attached" => 1});
+is_deeply(\@del, []);
ok(-s "t/tmp/.ikiwiki/transient/attached.mdwn");
1;
diff --git a/t/tag.t b/t/tag.t
index 8fc4940a2..cc0a30cad 100755
--- a/t/tag.t
+++ b/t/tag.t
@@ -65,8 +65,8 @@ my (%pages, @del);
IkiWiki::gen_autofile("tags/lucky.mdwn", \%pages, \@del);
ok(! -s "t/tmp/tags/lucky.mdwn");
ok(-s "t/tmp/.ikiwiki/transient/tags/lucky.mdwn");
-is_deeply(\%pages, {"t/tmp/tags/lucky" => 1}) || diag explain \%pages;
-is_deeply(\@del, []) || diag explain \@del;
+is_deeply(\%pages, {"t/tmp/tags/lucky" => 1});
+is_deeply(\@del, []);
# generating an autofile that already exists does nothing
%pages = @del = ();