1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/perl
use lib qw (../lib lib);
use Test::More 'no_plan';
use strict;
use warnings;
use MKDoc::XML::Decode;
$SIG{__WARN__} = sub {};
# those should be unchanged
my $decode = new MKDoc::XML::Decode 'xhtml';
is ($decode->process ('Hello, <'), 'Hello, <');
is ($decode->process ('Hello, >'), 'Hello, >');
is ($decode->process ('Hello, &'), 'Hello, &');
is ($decode->process ('Hello, "'), 'Hello, "');
is ($decode->process ('Hello, ''), 'Hello, '');
# but these should be
isnt ($decode->process (' '), ' ');
# add your own here :)
1;
__END__
|