diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 17:09:52 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-25 17:09:52 -0400 |
commit | fc445f6b70421ffc00cc414b92b038f73804cbc1 (patch) | |
tree | 86f4eca93d474145aa666d66fbb54e8f06f1e64f /t | |
parent | 99626615ff41a257090414bf500a83674e8fdc27 (diff) | |
parent | bc6e50a075b164100d3144a13633647613a3dc8e (diff) |
Merge commit 'smcv/ready/optimize-depends'
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 => { |