Debian Codegraph @

t/escape.t

raw
1 #!perl -T
2 use Test::Simple tests => 1;
3 use Text::WikiCreole;
4
5 $name = "escape";
6
7 # load the markup
8 open M, "<t/$name.markup" or die "failed to open $name.markup";
9 { local $/; $markup = <M>; }
10 close M;
11
12 # load the html to compare
13 open H, "<t/$name.html" or die "failed to open $name.html";
14 { local $/; $goodhtml = <H>; }
15 close H;
16
17 $html = creole_parse $markup;
18
19 ok( $html eq $goodhtml );
20