Debian Codegraph @

t/01_simple.t

raw symbols SCIP
1 use strict;
2 use warnings;
3 use utf8;
4 use Test::More;
5 use HTML::Escape;
6
7 ok(HTML::Escape::USE_XS, "uses XS module") or do {
8 eval { XSLoader::load('HTML::Escape', $HTML::Escape::VERSION) };
9 diag $@ if $@;
10 };
11 is(escape_html("<^o^>"), '&lt;^o^&gt;');
12 is(escape_html("'"), "&#39;");
13 is(escape_html("\0>"), "\0&gt;");
14 is(escape_html("`"), "&#96;");
15 is(escape_html("{}"), "&#123;&#125;");
16
17 done_testing;
18