]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - t/crazy-badass-perl-bug.t
img test: set old timestamp on source file that will change
[git.ikiwiki.info.git] / t / crazy-badass-perl-bug.t
1 #!/usr/bin/perl
2 # DO NOT CHANGE ANYTHING IN THIS FILE.
3 # THe crazy bug reproduced here will go away if any of the calls
4 # to htmlize are changed.
5 # Note: This was http://bugs.debian.org/376329 , and was fixed in 
6 # perl 5.14.
7 use warnings;
8 use strict;
9 use Test::More tests => 102;
10 use Encode;
12 BEGIN { use_ok("IkiWiki"); }
14 # Initialize htmlscrubber plugin
15 %config=IkiWiki::defaultconfig();
16 $config{srcdir}=$config{destdir}="/dev/null";
17 IkiWiki::loadplugins(); IkiWiki::checkconfig();
18 ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test1.mdwn")));
19 ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test3.mdwn")),
20         "wtf?") for 1..100;