X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4315581f31498c7c791fab2b251359c99533760f..d3c15aed18ef9e67c3e785ac3cc0426c56e59ac7:/t/textile-double-escape-bug.t diff --git a/t/textile-double-escape-bug.t b/t/textile-double-escape-bug.t index 607706be4..f8ab3f7e1 100755 --- a/t/textile-double-escape-bug.t +++ b/t/textile-double-escape-bug.t @@ -14,20 +14,22 @@ BEGIN { subtest 'Text::Textile apparently double-escapes HTML entities in hrefs' => sub { my $text = q{Gödel, Escher, Bach}; + my $text_ok = qr{G(?:ö|ö|ö|[fF]6;)del, Escher, Bach}; my $href = q{https://en.wikipedia.org/wiki/Gödel,_Escher,_Bach}; - my $good = qq{
}; + my $href_ok = qr{https://en\.wikipedia\.org/wiki/G(?:ö|ö|ö|[fF]6|%[cC]3%[bB]6)del,_Escher,_Bach}; + my $good = qr{}; chomp(my $mdwn_html = IkiWiki::Plugin::mdwn::htmlize( content => qq{[$text]($href)}, )); - is($mdwn_html, $good); + like($mdwn_html, $good); chomp(my $txtl_html = IkiWiki::Plugin::textile::htmlize( content => qq{"$text":$href}, )); TODO: { local $TODO = "Text::Textile double-escapes the href"; - is($txtl_html, $good); - isnt($txtl_html, q{}); + like($txtl_html, $good); + unlike($txtl_html, qr{}i); } };