Debian Codegraph @

t/16-convert-mult-categories.t

raw
1 use strict;
2 use warnings;
3 use Test::More tests => 2;
4 use XML::Feed;
5
6 my $feed = XML::Feed->parse("t/samples/rss-multiple-categories.xml");
7
8 my ($entry) = $feed->entries;
9
10 is_deeply(
11 [$entry->category()],
12 ["foo", "bar", "quux", "simon's tags"],
13 "Got all categories");
14
15 my ($converted_entry) = $feed->convert('Atom')->entries;
16
17 is_deeply(
18 [$converted_entry->category()],
19 ["foo", "bar", "quux", "simon's tags"],
20 "All categories in place after conversion");