1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
use strict;
use warnings;
use Test;
use XML::Dumper;
BEGIN { plan tests => 1 }
sub check( $$ );
check "correct handling of scalar literals",
\"020525264";
# ============================================================
sub check( $$ ) {
# ============================================================
# Bug submitted 11/20/02 by Niels Vetger
# ------------------------------------------------------------
my $test = shift;
my $perl = shift;
if( eval { pl2xml( $perl ) } && not $@ ) {
ok( 1 );
} else {
ok( 0 );
}
}
|