Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (16 sloc) 0.356 kb
# $Id$
use strict;
use Test::More tests => 2;
use Encode;
use XML::Atom::Entry;
my $file = "t/samples/lifeblog-atom.xml";
my $xml = slurp($file);
my $entry = XML::Atom::Entry->new(Stream => \$xml);
ok $entry;
ok !Encode::is_utf8($entry->content->body);
sub slurp {
my $file = shift;
open my$fh, $file or die $!;
local $/;
<$fh>;
}
Jump to Line
Something went wrong with that request. Please try again.