aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-08-24 23:01:42 +0100
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-08-25 00:31:16 +0100
commit7227c2debfeef94b35f7d81f42900aa01820caa3 (patch)
tree8afce2b036659b0f03aa8822215658d7b7d0bf94 /t
parent2cf26fd709efa802b93109935b4203590d549810 (diff)
downloadikiwiki-7227c2debfeef94b35f7d81f42900aa01820caa3.tar
ikiwiki-7227c2debfeef94b35f7d81f42900aa01820caa3.tar.gz
Use a hash to de-duplicate dependencies
Diffstat (limited to 't')
-rwxr-xr-xt/index.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/index.t b/t/index.t
index 107dac9d0..2f23524a7 100755
--- a/t/index.t
+++ b/t/index.t
@@ -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 => {