New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List in item context misbehaves #710
Comments
From @moritzRakudo 00e9db: .say for (1, 2, 3).item prints three lines, although it should be just one (same as for [1, 2, There's a test for that in t/spec/S02-builtin_data_types/array.t now. Cheers, -- |
From @pmichaudOn Thu Feb 19 12:03:03 2009, mlenz@physik.uni-wuerzburg.de wrote:
...not so fast, there's more! :-) 20:02 <pmichaud> with .say for (1,2,3).item |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudOn Thu Feb 19 12:03:03 2009, mlenz@physik.uni-wuerzburg.de wrote:
...not so fast, there's more! :-) 20:02 <pmichaud> with .say for (1,2,3).item |
From @pmichaudOn Thu Feb 19 12:03:03 2009, mlenz@physik.uni-wuerzburg.de wrote:
I think that the specification has changed such that Rakudo does the I've updated the test to match (r25791) and closing ticket. Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
From @pmichaudUpdate 2010-06-13: As part of the list/iterator refactor taking place Pm |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in S02-builtin_data_types/array.t commit d8e4ca96b03fdea174d34dc3f4102de23c7ed177 [array.t] unfudge test for RT #63350, also add a similar one for $() Inline Patchdiff --git a/S02-builtin_data_types/array.t b/S02-builtin_data_types/array.t
index 8283e98..8d3f026 100644
--- a/S02-builtin_data_types/array.t
+++ b/S02-builtin_data_types/array.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 103;
+plan 104;
#L<S02/Mutable types/Array>
@@ -13,12 +13,16 @@ plan 103;
}
-#?rakudo todo "RT #63350"
{
- # see also RT #63350 for discussion
+ # see RT #63350 for discussion
+ # also: 78284
my $i = 0;
$i++ for (1, 2, 3).item;
is $i, 1, 'for (1, 2, 3).item does one iteration';
+
+ $i = 0;
+ $i++ for $(1, 2, 3);
+ is $i, 1, 'for $(1, 2, 3) does one iteration';
}
{ |
From @moritzFixed in 5ce8fcfe541b6eb2426ea64247bf01998b0d5208, test unfudged. |
Migrated from rt.perl.org#63350 (status was 'resolved')
Searchable as RT63350$
The text was updated successfully, but these errors were encountered: