On Sun, Sep 14, 2008 at 01:59:22PM -0700, Michael G Schwern wrote:
> Eric Wilhelm asked me to chime in here.
>
> is_deeply() is about checking that two structures contain the same values.
> This is different from checking that they're the same *things*, that they are
> in fact the same object or r
Eric Wilhelm asked me to chime in here.
is_deeply() is about checking that two structures contain the same values.
This is different from checking that they're the same *things*, that they are
in fact the same object or reference.
You need both.
Reading eqv() it seems that yes, it is doing like
On Sun, Sep 14, 2008 at 03:08:57PM +0200, Carl Mäsak wrote:
> Recently, in November, we've had reason to clone the Rakudo Test.pm
> and add an implementation (viklund++) of is_deeply, for testing
> whether two arrays, pairs or hashes are deeply -- recursively --
> equivalent. The method does what y
Recently, in November, we've had reason to clone the Rakudo Test.pm
and add an implementation (viklund++) of is_deeply, for testing
whether two arrays, pairs or hashes are deeply -- recursively --
equivalent. The method does what you'd think it does, checks the types
of its parameters and recurses