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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 132
Download (untitled) / with headers
text/plain 132b
"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.
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-3359-1210763761-1471.35874-4-0 [...] rt.cpan.org>
References: <RT-Ticket-35874 [...] rt.cpan.org> <rt-3.6.HEAD-3359-1210763761-1471.35874-4-0 [...] rt.cpan.org>
X-Pobox-Relay-Id: AB7D3A7C-21AC-11DD-81E0-80001473D85F-02258300!a-sasl-fastnet.pobox.com
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id E438B4D80AB for <bug-Test-Simple [...] rt.cpan.org>; Wed, 14 May 2008 07:55:46 -0400 (EDT)
Received: (qmail 18674 invoked from network); 14 May 2008 11:55:45 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 14 May 2008 11:55:45 -0000
Received: from a-sasl-fastnet.sasl.smtp.pobox.com (HELO sasl.smtp.pobox.com) (207.106.133.19) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 May 2008 04:55:42 -0700
Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 9A0442C90 for <bug-Test-Simple [...] rt.cpan.org>; Wed, 14 May 2008 07:55:38 -0400 (EDT)
Received: from windhund.schwern.org (x089241.ppp.asahi-net.or.jp [122.249.89.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 0A2742C8F for <bug-Test-Simple [...] rt.cpan.org>; Wed, 14 May 2008 07:55:36 -0400 (EDT)
Delivered-To: cpan-bug+Test-Simple [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #35874] missing isnt_deeply sub
User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421)
Return-Path: <schwern [...] pobox.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Test-Simple [...] rt.cpan.org
Date: Wed, 14 May 2008 20:55:30 +0900
X-Spam-Level: *
Message-Id: <482AD332.5030308 [...] pobox.com>
To: bug-Test-Simple [...] rt.cpan.org
X-Enigmail-Version: 0.95.6
Content-Transfer-Encoding: 7bit
From: Michael G Schwern <schwern [...] pobox.com>
RT-Message-ID: <rt-3.6.HEAD-3375-1210766153-340.35874-0-0 [...] rt.cpan.org>
Content-Length: 426
Download (untitled) / with headers
text/plain 426b
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/
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-3375-1210766153-340.35874-6-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-35874 [...] rt.cpan.org> <482AD332.5030308 [...] pobox.com> <rt-3.6.HEAD-3375-1210766153-340.35874-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 8F1E14D8046 for <bug-Test-Simple [...] rt.cpan.org>; Fri, 16 May 2008 03:45:00 -0400 (EDT)
Received: (qmail 7207 invoked from network); 16 May 2008 07:44:59 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 May 2008 07:44:59 -0000
Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 May 2008 00:44:57 -0700
Received: by ug-out-1314.google.com with SMTP id o2so1478325uge.33 for <bug-Test-Simple [...] rt.cpan.org>; Fri, 16 May 2008 00:44:54 -0700 (PDT)
Received: by 10.67.115.19 with SMTP id s19mr11312223ugm.70.1210923893968; Fri, 16 May 2008 00:44:53 -0700 (PDT)
Received: from ?10.0.0.101? ( [62.90.140.151]) by mx.google.com with ESMTPS id t2sm6630662gve.9.2008.05.16.00.44.50 (version=SSLv3 cipher=RC4-MD5); Fri, 16 May 2008 00:44:52 -0700 (PDT)
Delivered-To: cpan-bug+Test-Simple [...] diesel.bestpractical.com
User-Agent: KMail/1.9.9
Subject: Re: [rt.cpan.org #35874] missing isnt_deeply sub
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=FthDvTIEB33WR5WDxH+8qAFcfFEsQj9072jiB/cNBsMWXdFCjxxuNC9I06qrNSX0gxIJFIOwMXXBG3Q+Vb2Lqm+nQ0Ni3VYlpkFO1ej/4/u1+0i/CkIfHStc+c4UECihJ6fbms1PeBKq0JtUQp+CNrisdMg/C0VZFJepeR6yiTM=
Return-Path: <shorttoedeagle [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=DyTc41rSLqlQRnJ+mpir87u/89prICRZkev8m2+bMDU=; b=DiV4JfHyDVmrtcYrpGU5IQrRR47qvwagETN3J2zSehXlZ72C/cHGXhzdcGmXteT+VfPhbQ7ogW1yqxNnMkM1SZBft8Z6gKUKo4zJPQSRgJU+6CahOWk1govKLVHsQcIlZpeRGjuDDirAGbEZpva3VnwxB7OyfviW5IlbAS9zrhs=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Test-Simple [...] rt.cpan.org
Date: Fri, 16 May 2008 10:44:41 +0300
X-Spam-Level: *
Message-Id: <200805161044.42172.shorttoedeagle [...] gmail.com>
To: bug-Test-Simple [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Yonatan Broza <shorttoedeagle [...] gmail.com>
RT-Message-ID: <rt-3.6.HEAD-19831-1210923908-695.35874-0-0 [...] rt.cpan.org>
Content-Length: 803
Download (untitled) / with headers
text/plain 803b
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?
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10118-1263000187-64.35874-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 72
Giving this one to Test::Deep to do whatever Fergal wants to do with it.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-10118-1263000187-64.35874-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.8.HEAD-10118-1263000187-64.35874-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2367-1279490212-831.35874-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 180
Download (untitled) / with headers
text/plain 180b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.