# $Id: zeroes.t,v 1.3 2001/12/17 11:32:09 gellyfish Exp $
# check the ``0'' bug && the interface
use Test::More tests => 7;
use strict;
use_ok('XML::XSLT');
my $parser = eval {
XML::XSLT->new (<<'EOS', warnings => 'Active');
0
0
EOS
};
ok(! $@,"New from literal stylesheet");
ok($parser,"Parser is a defined value");
eval {
$parser->transform(\<00
EOX
};
ok(!$@,"transform a literal XML document");
my $outstr= eval { $parser->toString };
ok(! $@, "toString doesn't die");
ok($outstr,"toString produced output");
my $correct='0000';
ok( $correct eq $outstr,"The expected output was produced");