[Pdx-pm] is_deeply and objects
Josh Heumann
perl-pm at joshheumann.com
Fri Feb 25 14:40:01 PST 2005
Test::More::is_deeply doesn't seem to differentiate between hashes and
blessed hashes. Anyone know why?
A quickly-thrown-together example:
my %hash = (
foo => 1,
bar => 2,
baz => 3,
);
my %other_hash = %hash;
bless \%hash, 'FOO';
is_deeply( \%hash, \%other_hash ); #passes
This question is posed in honor of Schwern's arrival. Schwern: who loves
ya, baby?
Josh
More information about the Pdx-pm-list
mailing list