On Tue, Sep 09, 2003 at 08:39:21PM +0200, Tels wrote:
> Real world example: [*]
>
> [EMAIL PROTECTED]:~> perl -MTest::More -MMath::String -wle 'plan tests => 1; $a =
> Math::String->new("abc"); $b = $a->copy()->bneg(); ok $a,$b; print "$a != $b
> (", $a->as_number(), " != ", $b->as_number(),")";'
> 1..1
> ok 1 - abc
> abc != abc (731 != -731)
>
> ok() considers them equal, since it uses "eq" internally. Should is_deeply()
> also consider them equal? Good question, I have no idea, never having uses
> is_deeply().
is_deeply() should compare pretty much like is() which uses string equality.
So yes, is_deeply() should consider them equal.
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
Remember, any tool can be the right tool.
-- Red Green