File: 13-category-hash-bug.t

package info (click to toggle)
libxml-feed-perl 0.43%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 308 kB
  • ctags: 105
  • sloc: perl: 924; xml: 450; sh: 22; makefile: 16
file content (19 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use Test::More;

eval { require XML::RSS::LibXML };
plan skip_all => "XML::RSS::LibXML is required." if $@;

plan tests => 20;

use XML::Feed;

for my $parser (qw( XML::RSS XML::RSS::LibXML )) {
    $XML::Feed::Format::RSS::PREFERRED_PARSER = $parser;

    my $f = XML::Feed->parse("t/samples/category-bug.xml");
    for my $e ($f->entries) {
        eval { $e->category };
        ok !$@, $@;
    }
}