in reply to Re: Do you consider these different or the same?
in thread Do you consider these different or the same?
Under that usage, is_deeply() needs to see both the posted datastructures as equal.
I dont understand. You want is_deeply() to gloss over the fact that your hand constructed example is different from what it returns? Why is this good? And please before you use the example that Schwern did in a post, think about somethign like this:
my %expect_hash=(a=>1,b=>2); my @expect=({%expect_hash},{%expect_hash}); #versus my @copies=(\%expect_hash,\%expect_hash);
Is the extra char too much price to pay for is_deeply() doing what its name says it does? (this isn't intended as a snarky question, I really am curious.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Do you consider these different or the same?
by hardburn (Abbot) on Jul 01, 2005 at 14:09 UTC |