]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - t/crazy-badass-perl-bug.t
httpauth: When cgiauthurl is configured, httpauth can now be used alongside other...
[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 use warnings;
6 use strict;
7 use Test::More tests => 102;
8 use Encode;
10 BEGIN { use_ok("IkiWiki"); }
12 # Initialize htmlscrubber plugin
13 %config=IkiWiki::defaultconfig();
14 $config{srcdir}=$config{destdir}="/dev/null";
15 IkiWiki::loadplugins(); IkiWiki::checkconfig();
16 ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test1.mdwn")));
17 ok(IkiWiki::htmlize("foo", "foo", "mdwn", readfile("t/test3.mdwn")),
18         "wtf?") for 1..100;