Debian Codegraph @

t/06-atom10.t

raw
1 use strict;
2 use warnings;
3 use XML::Feed;
4
5 use Test::More;
6 plan tests => 7;
7
8 my $feed = XML::Feed->parse("t/samples/atom-full.xml");
9 is $feed->title, 'Content Considered Harmful Atom Feed';
10 is $feed->link, 'http://blog.jrock.us/', "link without rel";
11
12 my $e = ($feed->entries)[0];
13 ok $e->link, 'entry link without rel';
14 is "".$e->category, "Catalyst", "atom:category support";
15 is "".$e->modified, "2006-08-09T19:07:58", "atom:updated";
16 is $e->content->type, 'text/html';
17 like $e->content->body, qr/^<div class="pod">/;
18
19
20