Debian Codegraph @

t/08-convert-summary-bug.t

raw
1 use strict;
2 use warnings;
3 use Test::More tests => 1;
4 use XML::Feed;
5 use XML::Feed::Entry;
6
7 my $feed = XML::Feed->new();
8 $feed->title('My Feed');
9 $feed->link('http://www.example.com/');
10 $feed->description('Wow!');
11
12 my $entry = XML::Feed::Entry->new();
13 $entry->title('Foo Bar');
14 $entry->link('http://www.example.com/foo/bar.html');
15 $entry->content('This is the content, but there is no summary.');
16 $entry->author('Foo Baz');
17
18 $feed->add_entry($entry);
19
20
21 unlike($feed->convert('Atom')->as_xml(), qr{<summary>},
22 'no summary tag after converting to Atom');