On Fri, Sep 30, 2005 at 11:13:13PM +0200, Torsten Schoenfeld wrote:
> Stringification again.  Changing the tests back to using is_deeply()
> doesn't change a thing; same failure.  That's where I give up.  Where's
> the mistake?

There's not really a mistake, more that if a given reference is overloaded
in several ways its not possible for Test::More to guess which one is the
canonical representation.  Should this blessed, string and array overloaded
hash ref (I'm going to assume its a hash ref) be treated as an array ref or a 
hash ref or a string?  Can't tell.  Test::More prefers strings since its
the most common type of overloading.

You have to make it explicit what you're comparing.  So chromatic's
suggestion should work, dereference the array ref before hand to eliminate
the overloading.

And, umm, I'd think a bit about the wisdom of having something which is
both string and array overloaded.


-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
...they shared one last kiss that left a bitter yet sweet taste in her 
mouth--kind of like throwing up after eating a junior mint.
        -- Dishonorable Mention, 2005 Bulwer-Lytton Fiction Contest 
           by Tami Farmer

Reply via email to