diff options
| author | Simon McVittie <smcv@debian.org> | 2010-03-25 23:31:53 +0000 |
|---|---|---|
| committer | Simon McVittie <smcv@debian.org> | 2010-03-25 23:31:53 +0000 |
| commit | b86276ffed7ee001b35cd610e5d56e5afb4088cf (patch) | |
| tree | e0938154b6fb94e2b02d9cd99474e8784818ac70 /t | |
| parent | 60edd2dc3157f756f4f7a213ee15836fe7bbb769 (diff) | |
Reimplement extensible sorting mechanisms, in the same way as pagespecs
Diffstat (limited to 't')
| -rwxr-xr-x | t/pagespec_match_list.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/pagespec_match_list.t b/t/pagespec_match_list.t index 309961f1c..743ae4637 100755 --- a/t/pagespec_match_list.t +++ b/t/pagespec_match_list.t @@ -9,7 +9,11 @@ BEGIN { use_ok("IkiWiki"); } $config{srcdir}=$config{destdir}="/dev/null"; IkiWiki::checkconfig(); -hook(type => "sort", id => "path", call => sub { $_[0] cmp $_[1] }); +{ + package IkiWiki::PageSpec; + + sub cmp_path { $_[0] cmp $_[1] } +} %pagesources=( foo => "foo.mdwn", |
