File: 502_MKDoc_XML_Encode.t

package info (click to toggle)
libmkdoc-xml-perl 0.75-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: perl: 2,629; xml: 17; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
use lib qw (../lib lib);
use Test::More 'no_plan';
use strict;
use warnings;
use MKDoc::XML::Encode;

is (MKDoc::XML::Encode->process ('Hello, <'),  'Hello, &lt;');
is (MKDoc::XML::Encode->process ('Hello, >'),  'Hello, &gt;');
is (MKDoc::XML::Encode->process ('Hello, &'),  'Hello, &amp;');
is (MKDoc::XML::Encode->process ('Hello, "'),  'Hello, &quot;');
is (MKDoc::XML::Encode->process ('Hello, \''), 'Hello, &apos;');
is (MKDoc::XML::Encode->process ('ABCDEF'),    'ABCDEF');


1;


__END__