Debian Codegraph @

t/13-category-hash-bug.t

raw ◀ ▶
1 Debian patch touch this file
1 use strict;
2 use warnings;
3 use Test::More;
4
5 eval { require XML::RSS::LibXML };
6 plan skip_all => "XML::RSS::LibXML is required." if $@;
•7 plan skip_all => "category-bug.xml does not exist" if(! -f "t/samples/category-bug.xml");
8
9 plan tests => 20;
10
11 use XML::Feed;
12
13 for my $parser (qw( XML::RSS XML::RSS::LibXML )) {
14 $XML::Feed::Format::RSS::PREFERRED_PARSER = $parser;
15
16 my $f = XML::Feed->parse("t/samples/category-bug.xml");
17 for my $e ($f->entries) {
18 eval { $e->category };
19 ok !$@, $@;
20 }
21 }