Subject: Partial Data::Dumper patch
From: Richard Clamp <richardc@unixbeard.net>
Date: Sat, 4 Jan 2003 00:52:47 +0000
Message-ID: <
20030104005247.GA27685@mirth.demon.co.uk>
Subject: Re: Partial Data::Dumper patch
From: Slaven Rezic <slaven@rezic.de>
Date: 04 Jan 2003 02:48:08 +0100
Message-ID: <87u1gp4rdz.fsf@vran.herceg.de>
p4raw-id: //depot/perl@18572
p4raw-integrated: from //depot/maint-5.8/perl@18571 'copy in'
ext/Data/Dumper/t/dumper.t (@17645..)
p4raw-integrated: from //depot/maint-5.8/perl@18448 'merge in'
ext/Data/Dumper/Dumper.xs (@17645..)
return 1;
}
}
- else {
+ else if (val != &PL_sv_undef) {
SV *namesv;
namesv = newSVpvn("\\", 1);
sv_catpvn(namesv, name, namelen);
$Data::Dumper::Useperl = 1;
if (defined &Data::Dumper::Dumpxs) {
print "### XS extension loaded, will run XS tests\n";
- $TMAX = 357; $XS = 1;
+ $TMAX = 363; $XS = 1;
}
else {
print "### XS extensions not loaded, will NOT run XS tests\n";
- $TMAX = 180; $XS = 0;
+ $TMAX = 183; $XS = 0;
}
print "1..$TMAX\n";
TEST q(Data::Dumper->Dumpxs([\\%foo])),
"XS quotekeys == 0 for utf8 flagged ASCII" if $XS;
}
+############# 358
+{
+ $WANT = <<'EOT';
+#$VAR1 = [
+# undef,
+# undef,
+# 1
+#];
+EOT
+ @foo = ();
+ $foo[2] = 1;
+ TEST q(Data::Dumper->Dump([\@foo])), 'Richard Clamp, Message-Id: <20030104005247.GA27685@mirth.demon.co.uk>';
+ TEST q(Data::Dumper->Dumpxs([\@foo])) if $XS;
+}
+
+