note
adrianh
<blockquote><em>Well then, how about using Test::More::is_deeply() sometimes, instead?</em></blockquote>
<p>It's often useful, but you do have to bear in mind that it only looks at the basic structure of the objects, and ignores many things, e.g.:
<code>
is_deeply( {}, bless({}, 'Foo'), 'is_deeply ignores blessed' );
</code>
<p>will pass. [cpan://Test::Deep] is a useful module if you're interested in some of the detail.</p>
476435
476435