Skip to content

Commit ef5c6d5

Browse files
committed
test rakudo sequence overmunching
1 parent e208a23 commit ef5c6d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

S03-sequence/basic.t

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ is ~(1...^*).[^10], '1 2 3 4 5 6 7 8 9 10', 'RT #73268';
250250
#?niecza skip '&[] NYI'
251251
is (1, 1, &[+] ... *).[^10], '1 1 2 3 5 8 13 21 34 55', 'use &[+] on infix:<...> series';
252252

253+
# see http://irclog.perlgeek.de/perl6/2012-05-30#i_5659147 ff.
254+
# previously rakudo said Not enough positional parameters passed; got 3 but expected 4
255+
is(((1,1,2,4,8)[^4], *+*+*+* ... *)[4], 8, 'WhateverCode with arity > 3 gets enough arguments');
256+
253257
done;
254258

255259
# vim: ft=perl6

0 commit comments

Comments
 (0)