Skip to content
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

Rakudo doesn't print anything on 'say (1,2,4...*)[10]' #1605

Closed
p6rt opened this issue Mar 11, 2010 · 7 comments
Closed

Rakudo doesn't print anything on 'say (1,2,4...*)[10]' #1605

p6rt opened this issue Mar 11, 2010 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 11, 2010

Migrated from rt.perl.org#73508 (status was 'resolved')

Searchable as RT73508$

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

From @masak

<masak> rakudo​: say (1,2,4...*)[10]
<p6eval> rakudo 9786b0​: ( no output )
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @bbkr

Works on Kiev build, taken for tests.

$ perl6 -e 'say (1,2,4...*)[10]'
1024

On Thu Mar 11 02​:54​:00 2010, masak wrote​:

<masak> rakudo​: say (1,2,4...*)[10]
<p6eval> rakudo 9786b0​: ( no output )
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @bbkr

S03-operators/series.t
goes into infinite loop somewhere, need to investigate more

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @bbkr

tests added in t/spec/S03-operators/series.t

@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

@bbkr - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 29, 2010
@p6rt
Copy link
Author

p6rt commented Jun 29, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/series.t

commit 2021f32086a7c9614250e3379da84239fa81c6a3
Author​: bbkr <bbkr@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Tue Jun 29 12​:30​:41 2010 +0000

  [t/spec] tests for RT #​73508 Rakudo doesnt print anything on "say (1,2,4...*)[10]"
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31501 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S03-operators/series.t b/t/spec/S03-operators/series.t
index df19d2c..d3794c9 100644
--- a/t/spec/S03-operators/series.t
+++ b/t/spec/S03-operators/series.t
@@ -147,6 +147,10 @@ ok ?(one((-5 ... ^5).flat) == 0), '-5 ... ^5 produces just one zero';
 isa_ok (1...()), Failure,
     'empty list on right side of series operator does not cause infinite loop';
 
+# RT #73508
+is (1,2,4...*)[10], 1024,
+    'element from list generated using infinite series is accessible by index';
+
 done_testing;
 
 # vim: ft=perl6

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant