Navigation Menu

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 treat ^$n at the end of an infix:<...> right #1520

Closed
p6rt opened this issue Feb 18, 2010 · 7 comments
Closed

Rakudo doesn't treat ^$n at the end of an infix:<...> right #1520

p6rt opened this issue Feb 18, 2010 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 18, 2010

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

Searchable as RT72914$

@p6rt
Copy link
Author

p6rt commented Feb 18, 2010

From @masak

<masak> rakudo​: my @​a = (4...^5); say @​a.perl # should be 4 3 2 1 0 1
2 3 4, according to TimToady
<p6eval> rakudo 5d43a3​: OUTPUT«[4, 3, 2, 1]␤»
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @bbkr

works on Kiev build

$ perl6 -e 'my @​a = (4...^5); say @​a.perl'
[4, 3, 2, 1, 0, 1, 2, 3, 4]

adding tests...

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Jun 28, 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

test added.

note​: there are some other fudged tests with ^ series exclusion in test
suite, may be working now.

@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 c68e9b9b2138222022e62957834a357d69bb9217
Author​: bbkr <bbkr@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Tue Jun 29 12​:41​:07 2010 +0000

  [t/spec] tests for RT #​72914 Rakudo doesnt treat ^$n at the end of an infix​:<...>
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31502 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S03-operators/series.t b/t/spec/S03-operators/series.t
index d3794c9..4857333 100644
--- a/t/spec/S03-operators/series.t
+++ b/t/spec/S03-operators/series.t
@@ -151,6 +151,10 @@ isa_ok (1...()), Failure,
 is (1,2,4...*)[10], 1024,
     'element from list generated using infinite series is accessible by index';
 
+# RT #72914
+is (4...^5).join(', '), '4, 3, 2, 1, 0, 1, 2, 3, 4',
+    'geometric series started in one direction and continues in the other with exclusion';
+
 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