Mini Shell

Direktori : /home/.cpanm/work/1731937184.9053/XML-SAX-1.02/t/
Upload File :
Current File : //home/.cpanm/work/1731937184.9053/XML-SAX-1.02/t/30parse_file.t

use Test;
BEGIN { plan tests => 5 }
use XML::SAX::PurePerl;
use XML::SAX::PurePerl::DebugHandler;
use IO::File;

my $handler = XML::SAX::PurePerl::DebugHandler->new();
ok($handler);

my $parser = XML::SAX::PurePerl->new(Handler => $handler);
ok($parser);

my $file1 = IO::File->new("testfiles/01.xml");
ok($file1);

eval {
$parser->parse_file($file1);
};
print $@;
ok(!$@);

my $file2 = "testfiles/01.xml";

eval {
$parser->parse_file($file2);
};
print $@;
ok(!$@);


Zerion Mini Shell 1.0