X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/202c4d522f9f83d0e439b3846fb6a90e4eebee59..5de2cff378495030a68398b42f5514951d1adeab:/t/htmlize.t diff --git a/t/htmlize.t b/t/htmlize.t index 465004bc1..070fbf958 100755 --- a/t/htmlize.t +++ b/t/htmlize.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 4; +use Test::More tests => 5; use Encode; BEGIN { use_ok("IkiWiki"); } @@ -10,10 +10,13 @@ BEGIN { use_ok("IkiWiki::Render"); } # Initialize htmlscrubber plugin %IkiWiki::config=IkiWiki::defaultconfig(); $IkiWiki::config{srcdir}=$IkiWiki::config{destdir}="/dev/null"; +IkiWiki::loadplugins(); IkiWiki::checkconfig(); -is(IkiWiki::htmlize(".mdwn", "foo\n\nbar\n"), "
foo
\n\nbar
\n", +is(IkiWiki::htmlize("mdwn", "foo\n\nbar\n"), "foo
\n\nbar
\n", "basic"); -is(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test1.mdwn")), +is(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test1.mdwn")), Encode::decode_utf8(qq{\nóóóóó
\n}), "utf8; bug #373203"); +ok(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test2.mdwn")), + "this file crashes markdown if it's fed in as decoded utf-8");