diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-08-24 23:01:42 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2009-08-25 00:31:16 +0100 |
commit | 7227c2debfeef94b35f7d81f42900aa01820caa3 (patch) | |
tree | 8afce2b036659b0f03aa8822215658d7b7d0bf94 /t | |
parent | 2cf26fd709efa802b93109935b4203590d549810 (diff) | |
download | ikiwiki-7227c2debfeef94b35f7d81f42900aa01820caa3.tar ikiwiki-7227c2debfeef94b35f7d81f42900aa01820caa3.tar.gz |
Use a hash to de-duplicate dependencies
Diffstat (limited to 't')
-rwxr-xr-x | t/index.t | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -32,9 +32,9 @@ $renderedfiles{"bar.png"}=["bar.png"]; $links{"Foo"}=["bar.png"]; $links{"bar"}=["Foo", "new-page"]; $links{"bar.png"}=[]; -$depends{"Foo"}=[]; -$depends{"bar"}=["foo*"]; -$depends{"bar.png"}=[]; +$depends{"Foo"}={}; +$depends{"bar"}={"foo*" => 1}; +$depends{"bar.png"}={}; $pagestate{"bar"}{meta}{title}="a page about bar"; $pagestate{"bar"}{meta}{moo}="mooooo"; # only loaded plugins save state, so this should not be saved out @@ -80,9 +80,9 @@ is_deeply(\%links, { "bar.png" => [], }, "%links loaded correctly"); is_deeply(\%depends, { - Foo => [], - bar => ["foo*"], - "bar.png" => [], + Foo => {}, + bar => {"foo*" => 1}, + "bar.png" => {}, }, "%depends loaded correctly"); is_deeply(\%pagestate, { bar => { |