File: 17-renames.t

package info (click to toggle)
libxml-atom-perl 0.23-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 420 kB
  • ctags: 264
  • sloc: perl: 3,357; xml: 663; makefile: 51
file content (20 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use FindBin;
use Test::More tests => 5;

use XML::Atom::Feed;

my $f = XML::Atom::Feed->new("$FindBin::Bin/samples/atom-1.0.xml");
is $f->tagline, $f->subtitle;

my $e = ($f->entries)[0];
is $e->modified, $e->updated, $e->modified;
is $e->issued, $e->published, $e->issued;

# create
$f = XML::Atom::Feed->new;
$f->title("foo bar");
$f->tagline("Hello");

is $f->tagline, "Hello";
is $f->subtitle, "Hello";