]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
update test suite for recent index load on rebuild changes
authorJoey Hess <joey@kitenet.net>
Mon, 26 Apr 2010 23:01:31 +0000 (19:01 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 26 Apr 2010 23:01:31 +0000 (19:01 -0400)
t/index.t

index 44273059dcad28262b35c788bfe22f00690e8947..392a167e9747131dbcd065b022a725ebf35f16d2 100755 (executable)
--- a/t/index.t
+++ b/t/index.t
@@ -117,11 +117,14 @@ is_deeply(\%oldtypedlinks, {
 %pagesources=%pagemtime=%oldlinks=%links=%depends=%typedlinks=%oldtypedlinks=
 %destsources=%renderedfiles=%pagecase=%pagestate=();
 
-# When state is loaded for a wiki rebuild, only ctime and oldrenderedfiles
-# are retained.
+# When state is loaded for a wiki rebuild, only ctime, oldrenderedfiles,
+# and pagesources are retained.
 $config{rebuild}=1;
 ok(loadindex(), "load index");
 is_deeply(\%pagesources, {
+       Foo => "Foo.mdwn",
+       bar => "bar.mdwn",
+       "bar.png" => "bar.png",
 }, "%pagesources loaded correctly");
 is_deeply(\%pagemtime, {
 }, "%pagemtime loaded correctly");
@@ -143,7 +146,10 @@ is_deeply(\%depends, {
 }, "%depends loaded correctly");
 is_deeply(\%pagestate, {
 }, "%pagestate loaded correctly");
-is_deeply(\%pagecase, {
+is_deeply(\%pagecase, { # generated implicitly since pagesources is loaded
+       foo => "Foo",
+       bar => "bar",
+       "bar.png" => "bar.png"
 }, "%pagecase generated correctly");
 is_deeply(\%destsources, {
 }, "%destsources generated correctly");