Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 |
|
| 8 |
plan tests => 20; |
| 9 |
|
| 10 |
use XML::Feed; |
| 11 |
|
| 12 |
for my $parser (qw( XML::RSS XML::RSS::LibXML )) { |
| 13 |
$XML::Feed::Format::RSS::PREFERRED_PARSER = $parser; |
| 14 |
|
| 15 |
my $f = XML::Feed->parse("t/samples/category-bug.xml"); |
| 16 |
for my $e ($f->entries) { |
| 17 |
eval { $e->category }; |
| 18 |
ok !$@, $@; |
| 19 |
} |
| 20 |
} |