File: 10.bugs.t

package info (click to toggle)
libxml-atom-simplefeed-perl 0.86-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 96 kB
  • ctags: 26
  • sloc: perl: 288; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl
use warnings;
use strict;
use XML::Atom::SimpleFeed;

package XML::Atom::SimpleFeed;
use Test::More tests => 2;

is person_construct( author => 'John Doe &' ), '<author><name>John Doe &#38;</name></author>', 'author names are escaped';
is person_construct( author => "John Doe \x{263A}" ), '<author><name>John Doe &#9786;</name></author>', 'non-ASCII author names are encoded';