Fix bug in conversion process between RSS and Atom where HTML got double encoded
[catagits/XML-Feed.git] / t / 13-category-hash-bug.t
CommitLineData
e5a65e5e 1use strict;
2use Test::More;
3
4eval { require XML::RSS::LibXML };
5plan skip_all => "XML::RSS::LibXML is required." if $@;
6
7plan tests => 20;
8
9use XML::Feed;
10
11for my $parser (qw( XML::RSS XML::RSS::LibXML )) {
12 $XML::Feed::Format::RSS::PREFERRED_PARSER = $parser;
13
14 my $f = XML::Feed->parse("t/samples/category-bug.xml");
15 for my $e ($f->entries) {
16 eval { $e->category };
17 ok !$@, $@;
18 }
19}