On Tue, Sep 09, 2003 at 09:26:23AM -0700, Ovid wrote: > This is fine: > > isa_ok($str2, ref $str1, '... and the object'); > > This is (almost) not fine: > > is($str2, $str1, '... and the strings are equal'); > > However, the latter (and is_deeply()) should work *If and Only If* that > comparison is part of the documented interface.
Since, as you point out, Test::More can't know what's documented and what's not, we have to go with the most common case. Its quite simple. How often would one overload an object and *not* make it part of the public interface? I'm betting not very often. More importantly, I'm *not* betting against the test author. If they wrote a test for string equality (which is what is() pretty much is) then that's what they'll get. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Playstation? Of course Perl runs on Playstation. -- Jarkko Hietaniemi