Skip Menu |
Report information
Id: 63346
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: petdance <andy [at] petdance.com>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: t/00-parrot/05-var-array.t is failing in a way "make test" doesn't catch
Date: Thu, 19 Feb 2009 12:54:56 -0600
To: rakudobug [...] perl.org
From: Andy Lester <andy [...] petdance.com>
Download (untitled) / with headers
text/plain 270b
the "ok 3" is coming out as "ok" but prove doesn't complain. my @a = (1, 2, 3); say 'ok ' ~ @a[0]; say 'ok ' ~ @a[1]; say 'ok ' ~ @a[-1]; This is hiding the fact that @a[-1] is not working. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Download (untitled) / with headers
text/plain 316b
On Thu Feb 19 10:55:23 2009, petdance wrote: Show quoted text
> the "ok 3" is coming out as "ok" but prove doesn't complain. > > my @a = (1, 2, 3); > > say 'ok ' ~ @a[0]; > say 'ok ' ~ @a[1]; > say 'ok ' ~ @a[-1];
I also tried this as say 'ok ' ~ @a[-1] + 0; and it comes out as "ok 0", and T::H doesn't care about that, either.
Download (untitled) / with headers
text/plain 410b
On Thu Feb 19 10:55:23 2009, petdance wrote: Show quoted text
> the "ok 3" is coming out as "ok" but prove doesn't complain. > > my @a = (1, 2, 3); > > say 'ok ' ~ @a[0]; > say 'ok ' ~ @a[1]; > say 'ok ' ~ @a[-1]; > > This is hiding the fact that @a[-1] is not working.
Actually it should be @a[*-1], and I've fixed that test accordingly. The fact that the harness doesn't report this is disturbing though. Cheers, Moritz
Download (untitled) / with headers
text/plain 611b
On Fri Feb 20 00:39:35 2009, moritz wrote: Show quoted text
> On Thu Feb 19 10:55:23 2009, petdance wrote:
> > the "ok 3" is coming out as "ok" but prove doesn't complain. > > > > my @a = (1, 2, 3); > > > > say 'ok ' ~ @a[0]; > > say 'ok ' ~ @a[1]; > > say 'ok ' ~ @a[-1]; > > > > This is hiding the fact that @a[-1] is not working.
> > Actually it should be @a[*-1], and I've fixed that test accordingly. > > The fact that the harness doesn't report this is disturbing though. >
The test file doesn't exist any more, and the test harness issue isn't really a Rakudo bug. Marking this one as resolved. Thanks, Jonathan


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

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org