Skip Menu |

This queue is for tickets about the Devel-Assert CPAN distribution.

Report information
The Basics
Id: 104402
Status: resolved
Priority: 0/
Queue: Devel-Assert

People
Owner: Nobody in particular
Requestors: felix.li [...] bankofamerica.com
Cc:
AdminCc:

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



Subject: FW: Devel::Assert typo?
Date: Wed, 13 May 2015 11:06:10 +0000
To: "bug-Devel-Assert [...] rt.cpan.org" <bug-Devel-Assert [...] rt.cpan.org>
From: "Li, Felix" <felix.li [...] bankofamerica.com>
HI, I think you have a typo in your example as assert (3 > 2) is true. Perhaps you meant 3 < 2? Felix Li | Contractor-Product Specific Technologist TEKsystems - Onsite at Bank of America T 469-201-3071| M - | felix.li@bankofamerica.com<mailto:felix.li@bankofamerica.com> 16001 Dallas Parkway, O3H9, Addison, TX 75001 ---------------------------------------------------------------------- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.
On Wed May 13 07:06:43 2015, felix.li@bankofamerica.com wrote: Show quoted text
> I think you have a typo in your example as > > assert (3 > 2) > > is true. Perhaps you meant 3 < 2?
Yes, thanks, that was supposed to be a failing case. I've updated docs.
Subject: RE: [rt.cpan.org #104402] FW: Devel::Assert typo?
Date: Mon, 18 May 2015 11:52:57 +0000
To: "bug-Devel-Assert [...] rt.cpan.org" <bug-Devel-Assert [...] rt.cpan.org>
From: "Li, Felix" <felix.li [...] bankofamerica.com>
HI, Perhaps something like my ($i,@a) = (1,2); assert ($a[0] < $i); would be better as assert (3 < 2) returns Assertion '!1' failed ... Because perl has optimized 3 < 2 into always false. Show quoted text
-----Original Message----- From: Sergey Aleynikov via RT [mailto:bug-Devel-Assert@rt.cpan.org] Sent: Wednesday, May 13, 2015 9:47 AM To: Li, Felix Subject: [rt.cpan.org #104402] FW: Devel::Assert typo? <URL: https://rt.cpan.org/Ticket/Display.html?id=104402 > On Wed May 13 07:06:43 2015, felix.li@bankofamerica.com wrote:
> I think you have a typo in your example as > > assert (3 > 2) > > is true. Perhaps you meant 3 < 2?
Yes, thanks, that was supposed to be a failing case. I've updated docs. ---------------------------------------------------------------------- This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer. If you are not the intended recipient, please delete this message.
I wanted something really trivial for the synopsis. And if one tries it and runs actual synopsis code - that's great !) PS: due to perl optimizer, you can even get '???' from a constant-folded expression, but there isn't anything I can do about. On Mon May 18 07:53:17 2015, felix.li@bankofamerica.com wrote: Show quoted text
> HI, > > Perhaps something like > > my ($i,@a) = (1,2); > > assert ($a[0] < $i); > > would be better as > > assert (3 < 2) > > returns > > Assertion '!1' failed ... > > Because perl has optimized 3 < 2 into always false. > > -----Original Message----- > From: Sergey Aleynikov via RT [mailto:bug-Devel-Assert@rt.cpan.org] > Sent: Wednesday, May 13, 2015 9:47 AM > To: Li, Felix > Subject: [rt.cpan.org #104402] FW: Devel::Assert typo? > > <URL: https://rt.cpan.org/Ticket/Display.html?id=104402 > > > On Wed May 13 07:06:43 2015, felix.li@bankofamerica.com wrote:
> > I think you have a typo in your example as > > > > assert (3 > 2) > > > > is true. Perhaps you meant 3 < 2?
> > Yes, thanks, that was supposed to be a failing case. I've updated > docs. > > ---------------------------------------------------------------------- > This message, and any attachments, is for the intended recipient(s) > only, may contain information that is privileged, confidential and/or > proprietary and subject to important terms and conditions available at > http://www.bankofamerica.com/emaildisclaimer. If you are not the > intended recipient, please delete this message.