File: 21-rss2-permalinks.t

package info (click to toggle)
libxml-feed-perl 0.48%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 428 kB
  • sloc: perl: 1,027; xml: 606; sh: 48; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use warnings;

use Test::More tests => 2;
use XML::Feed;

my $file = 't/samples/rss20-p.xml';
my $feed = XML::Feed->parse($file);
isa_ok($feed, 'XML::Feed::Format::RSS');
my $entry = ($feed->entries)[0];
is($entry->link, 'http://creograf.ru/post/regexp -js');