/[XML-Feed]/t/06-atom10.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /t/06-atom10.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Sun Mar 16 19:47:49 2008 UTC (16 years, 1 month ago) by dpavlin
File MIME type: application/x-troff
File size: 501 byte(s)
import XML::Feed 0.12 from CPAN

1 dpavlin 1 use strict;
2     use XML::Feed;
3    
4     use Test::More;
5     plan tests => 7;
6    
7     my $feed = XML::Feed->parse("t/samples/atom-full.xml");
8     is $feed->title, 'Content Considered Harmful Atom Feed';
9     is $feed->link, 'http://blog.jrock.us/', "link without rel";
10    
11     my $e = ($feed->entries)[0];
12     ok $e->link, 'entry link without rel';
13     is $e->category, "Catalyst", "atom:category support";
14     is $e->modified, "2006-08-09T19:07:58", "atom:updated";
15     is $e->content->type, 'text/html';
16     like $e->content->body, qr/^<div class="pod">/;
17    
18    
19    

  ViewVC Help
Powered by ViewVC 1.1.26