Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 35874
Status: rejected
Priority: 0/
Queue: Test-Deep

People
Owner: Nobody in particular
Requestors: shorttoedeagle [...] gmail.com
Cc:
AdminCc:

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



Subject: missing isnt_deeply sub
"is_deeply" is great. Wish we had a "isnt_deeply" in which a test passes if and only if the arguments do not match deeply. Thanks.
Subject: Re: [rt.cpan.org #35874] missing isnt_deeply sub
Date: Wed, 14 May 2008 20:55:30 +0900
To: bug-Test-Simple [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Yonatan Broza via RT wrote: Show quoted text
> "is_deeply" is great.
Thanks. Show quoted text
> Wish we had a "isnt_deeply" in which a test passes if and only if the > arguments do not match deeply.
That would be something you should request of Test::Deep. I'm curious what you found you need it for? -- 40. I do not have super-powers. -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/
Subject: Re: [rt.cpan.org #35874] missing isnt_deeply sub
Date: Fri, 16 May 2008 10:44:41 +0300
To: bug-Test-Simple [...] rt.cpan.org
From: Yonatan Broza <shorttoedeagle [...] gmail.com>
Hi Michael, I was writing a test for a script which ultimately restarts a bunch of processes. I read the pids into an array, called the script, waited a little, and finally read the new pids into another array. The test was intended to make sure that the pids changed by comparing the two arrays. I ended up using the discouraged "ok( (not eq_array(...)) )" solution. Thanks :) On Wednesday 14 May 2008 14:55:56 Michael G Schwern via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=35874 > > > Yonatan Broza via RT wrote:
> > "is_deeply" is great.
> > Thanks. >
> > Wish we had a "isnt_deeply" in which a test passes if and only if the > > arguments do not match deeply.
> > That would be something you should request of Test::Deep. I'm curious what > you found you need it for?
Giving this one to Test::Deep to do whatever Fergal wants to do with it.
Seems like ok(cmp_deeply($x, %y)) should do the trick. I try to do as little as possible with Test::Deep these days so isnt_deeply, plus tests, docs etc is unlikely to happen, F