> If they are to be documented anywhere it is in rt.cpan.org.  The
Test::More
> documentation is not a bug tracking system.

> Sorry to be so troublesome about this, but as RFC 1925's Rule #1 states 
> "It Has To Work".

But it doesn't work! The {} equals { key => []} bug even slightly harmless.
If that was the only situation where the bug shows then maybe that'd ok but
it's not, that's just the simplest test case.

is_deeply thinks that a hash key with value [] is the same as no key at
all, for any hash at any level of the datastructure. I don't have access to
perl right now but I think maybe it also can't spot extra []s at the end of
an array.

So basically you can't trust is_deeply, eq_array or eq_hash to compare
arrays or hashes.

Yes the precise details should be on rt.cpan.org but if it was worth noting
that "Display of scalar refs is not quite 100%" in the docs then surely
it's worth noting

"is_deeply, eq_array and eq_hash don't work at all"

F


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


Reply via email to