Skip to content

Commit df13d54

Browse files
committed
Add tests for RT #75674
1 parent c892865 commit df13d54

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

S03-sequence/basic.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33

44
# L<S03/List infix precedence/"the sequence operator">
55

6-
plan 126;
6+
plan 129;
77

88
# single-term sequence
99

@@ -254,6 +254,13 @@ is (1, 1, &[+] ... *).[^10], '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...>
254254
# previously rakudo said Not enough positional parameters passed; got 3 but expected 4
255255
is ((1,1,2,4,8)[^4], *+*+*+* ... *)[4], 8, 'WhateverCode with arity > 3 gets enough arguments';
256256

257+
#RT #75674
258+
{
259+
is (4 ... ^5), <4 3 2 1 0 1 2 3 4>, "RT #75674";
260+
is (4 ... 0,1,2,3,4), <4 3 2 1 0 1 2 3 4>, "RT #75674";
261+
is (-5 ... ^5), <-5 -4 -3 -2 -1 0 1 2 3 4>, "RT #75674";
262+
}
263+
257264
done;
258265

259266
# vim: ft=perl6

0 commit comments

Comments
 (0)