Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RT #111646, slurpies => infinite .count

  • Loading branch information...
commit cc341e385f63efc952ee1f7a0f7df328450e781f 1 parent d0c47d3
@moritz moritz authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 S06-signature/arity.t
View
6 S06-signature/arity.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 50;
+plan 52;
# L<S06/Required parameters/method:>
sub a_zero () { };
@@ -145,4 +145,8 @@ dies_ok { eval("a_zero( 'hello', 'world' )") }, 'no matching sub signature';
is &a.arity, 1, '&multi.arity';
}
+# RT #111646
+is (-> *@a { }).count, Inf, 'slurpy positional causes infinite count';
+is (-> *%a { }).count, 0, 'slurpy named causes no count change';
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.