diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-26 19:01:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-26 19:01:31 -0400 |
commit | a6d38b7f26561e26b8c3d813f19b8eff736684d2 (patch) | |
tree | 09872e2e362d7eb85f76ec808b894258c0354127 /t | |
parent | 3ac2ae1f14952bd92038183d92b1eb618c9d0f55 (diff) | |
download | ikiwiki-a6d38b7f26561e26b8c3d813f19b8eff736684d2.tar ikiwiki-a6d38b7f26561e26b8c3d813f19b8eff736684d2.tar.gz |
update test suite for recent index load on rebuild changes
Diffstat (limited to 't')
-rwxr-xr-x | t/index.t | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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"); |