Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Test fixes #3

Merged
merged 3 commits into from

2 participants

@wchristian

These commits are meant to improve and fix the tests. They contain a documentation change, a fix for the recently merged UTF-uppercasing change and a fix for file:// uris on Win32.

With these XML::Atom passes the entire test suite on Windows XP.

@miyagawa miyagawa merged commit d04ef0d into miyagawa:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
2  t/03-link.t
@@ -27,7 +27,7 @@ $link->type('text/html');
is $link->type, 'text/html';
my $xml = $link->as_xml;
-like $xml, qr/^<\?xml version="1.0" encoding="utf-8"\?>/;
+like $xml, qr/^<\?xml version="1.0" encoding="UTF-8"\?>/;
like $xml, qr/<link xmlns="http:\/\/purl.org\/atom\/ns#"/;
like $xml, qr/title="This is a test."/;
like $xml, qr/rel="alternate"/;
View
2  t/04-person.t
@@ -20,7 +20,7 @@ $person->email('foo@bar.com');
is $person->email, 'foo@bar.com';
my $xml = $person->as_xml;
-like $xml, qr/^<\?xml version="1.0" encoding="utf-8"\?>/;
+like $xml, qr/^<\?xml version="1.0" encoding="UTF-8"\?>/;
like $xml, qr/<author xmlns="http:\/\/purl.org\/atom\/ns#">/;
like $xml, qr/<name(?: xmlns="http:\/\/purl.org\/atom\/ns#")?>Baz Quux<\/name>/;
like $xml, qr/<email(?: xmlns="http:\/\/purl.org\/atom\/ns#")?>foo\@bar.com<\/email>/;
View
2  t/30-datetime-stringification.t
@@ -4,7 +4,7 @@ use Test::More;
BEGIN {
unless (eval { require DateTime } and eval { require DateTime::Format::Atom }) {
- plan skip_all => 'DateTime is required for tests';
+ plan skip_all => 'DateTime and DateTime::Format::Atom are required for tests';
}
}
View
1  t/31-external-entities-libxml.t
@@ -4,6 +4,7 @@ use Test::More;
use XML::Atom::Entry;
use FindBin;
my $filepath = "$FindBin::Bin/samples/entry-ns.xml";
+$filepath = "/$filepath" if $filepath !~ m@^/@;
BEGIN {
unless (eval { require XML::LibXML }) {
Something went wrong with that request. Please try again.