File: 05-atom10-link.t

package info (click to toggle)
libxml-feed-perl 0.61%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 500 kB
  • sloc: perl: 1,137; xml: 682; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use strict;
use warnings;
use XML::Feed;

use Test::More;
plan tests => 3;

my $feed = XML::Feed->parse("t/samples/atom-10-example.xml");
is $feed->title, 'Example Feed';
is $feed->link, 'http://example.org/', "link without rel";

my $e = ($feed->entries)[0];
ok $e->link, 'entry link without rel';