# This is to test the following bug:
# https://rt.cpan.org/Ticket/Display.html?id=24742
use strict;
use warnings;
use Test::More tests => 1;
use XML::RSS;
{
my $rss_text = qq(
Example 2.0 Channel
http://example.com/
To lead by exampleen-usAll content Public Domain, except comments which remains copyright the authoreditor\@example.comwebmaster\@example.comhttp://backend.userland.com/rssReference/Libraries/Library_and_Information_Science/Technical_Services/Cataloguing/Metadata/RDF/Applications/RSS/The Superest Dooperest RSS GeneratorMon, 02 Sep 2002 03:19:17 GMT60News for September the Second
http://example.com/2002/09/02
other things happened todayhttp://example.com/2002/09/02/comments.htmljoeuser\@example.comMon, 02 Sep 2002 03:19:00 GMThttp://example.com/2002/09/02);
my $xml = XML::RSS->new();
$xml->parse($rss_text);
# TEST
ok (
(index($xml->as_string(), q{http://example.com/2002/09/02}) >= 0),
"Checking for correct guid"
);
}