You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ok 220 - more sortkeys sub (XS)
ok 221 - no eval error
ok 222 - works a 2nd time after intervening eval
not ok 223 X - Deparse 1: Indent 2; Dump()
ok 224 - no eval error
not ok 225 - re-evaled version
ok 226 - Numbers
Or:
$ ./perl -Ilib -Idist/Data-Dumper/lib dist/Data-Dumper/t/dumper.t
...
ok 222 - works a 2nd time after intervening eval
not ok 223 X - Deparse 1: Indent 2; Dump()
--Expected--
#$VAR1 = {
# foo => sub {
# use strict;
# print 'foo';
# }
# };
--Got--
#$VAR1 = {
# foo => sub {
# use warnings;
# use strict;
# print 'foo';
# }
# };
ok 224 - no eval error
not ok 225 - re-evaled version
--Expected--
#$VAR1 = {
# foo => sub {
# use strict;
# print 'foo';
# }
# };
--Got--
#$VAR1 = {
# foo => sub {
# use warnings;
# use strict;
# print 'foo';
# }
# };
ok 226 - Numbers
...
So it appears that turning on $Data::Dumper::Deparse causes the output of Dump to change.
This is easy enough to correct -- just include use warnings in the WANT. But before I do that, I want to know that this change of behavior is expected.
Turning on warnings-by-default causes
dist/Data-Dumper/t/dumper.t
to fail.In the
alpha
branch, this test file PASSes. So it's okay with strict-by-default. However, in thealpha-dev-03-warnings
branch, I get:The failures:
Or:
So it appears that turning on
$Data::Dumper::Deparse
causes the output ofDump
to change.This is easy enough to correct -- just include
use warnings
in theWANT
. But before I do that, I want to know that this change of behavior is expected.@atoomic, can you take a look?
Thank you very much.
Jim Keenan
The text was updated successfully, but these errors were encountered: