When I use is_deeply() in tests, I'm usually taking one datastructure that was returned by the code being tested, and another that I built that represents what I expect the code to return. Under that usage, is_deeply() needs to see both the posted datastructures as equal.
I suspect that the various opinions on this issue will reflect how people use is_deeply() in practice.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In reply to Re: Do you consider these different or the same?
by hardburn
in thread Do you consider these different or the same?
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |