File: 05_xmltext.t

package info (click to toggle)
libxml-rss-simplegen-perl 11.11-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 280 kB
  • sloc: perl: 1,230; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 563 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
20
21
22
23
24

require 5;
use strict;
use Test;
BEGIN { plan tests => 4 }

print "# Starting ", __FILE__ , " ...\n";
ok 1;

#sub XML::RSS::SimpleGen::DEBUG () {20}

use XML::RSS::SimpleGen;
print "# XML::RSS::SimpleGen version $XML::RSS::SimpleGen::VERSION\n";
sub z ($) { return XML::RSS::SimpleGen->xmlesc( $_[0] ) }

ok z "vis--vis Beyonc's nave papier-mch rsum",
     "vis-à-vis Beyoncé's naïve papier-mâché résumé";

ok z "This & That, N < 10, N > 2",
     "This &amp; That, N &lt; 10, N &gt; 2";

print "# Quitting...\n";
ok 1;