Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Simple CPAN distribution.

Report information
The Basics
Id: 14249
Status: resolved
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: nadim [...] khemir.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Confusing error message
Hi, is_deeply(SomeFunctionReturningAnArrayRef('fail'), [0, [1, 2]], 'Test) ; which is in the above case is equivalent to is_deeply(undef, [0, [1, 2]], 'Test) ; gives this message: Modification of non-creatable array value attempted, subscript -1 at /usr/local/lib/perl5/5.8.5/Test/More.pm line 1068. Cheers, Nadim.
Date: Sun, 21 Aug 2005 15:40:56 -0700
From: Michael G Schwern <schwern [...] pobox.com>
To: Guest via RT <bug-Test-Simple [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #14249] Confusing error message
RT-Send-Cc:
On Sun, Aug 21, 2005 at 05:25:15PM -0400, Guest via RT wrote: Show quoted text
> is_deeply(undef, [0, [1, 2]], 'Test) ; > > gives this message: > > Modification of non-creatable array value attempted, subscript -1 at > /usr/local/lib/perl5/5.8.5/Test/More.pm line 1068.
I am unable to replicate this with Test::More 0.47, 0.54, 0.60 or 0.60_02. What version of Test::More are you using? You can check with: perl -MTest::More -wle 'print $Test::More::VERSION' -- Michael G Schwern schwern@pobox.com 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
Date: Sun, 21 Aug 2005 15:53:02 -0700
From: Michael G Schwern <schwern [...] pobox.com>
To: Michael G Schwern via RT <bug-Test-Simple [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #14249] Confusing error message
RT-Send-Cc:
On Sun, Aug 21, 2005 at 06:41:09PM -0400, Michael G Schwern via RT wrote: Show quoted text
> I am unable to replicate this with Test::More 0.47, 0.54, 0.60 or 0.60_02.
I lied. I see 0.54 has this behavior. 0.47 and 0.60 do not. This was fixed in rt.cpan.org 9441. https://rt.cpan.org/Ticket/Display.html?id=9441 Upgrading to 0.60 will solve the problem. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern I do have a cause though. It's obscenity. I'm for it. - Tom Lehrer