Skip to content
Browse files

[t/spec] Another test for passing with lists/scalar interaction that …

…Rakudo currently gets wrong, pointed out by pmichaud++.

git-svn-id: http://svn.pugscode.org/pugs@24070 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 1fd6a83 commit 1216c98895f533193727fbf3e82f701674232e67 jnthn committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 S06-signature/passing-arrays.t
View
11 S06-signature/passing-arrays.t
@@ -11,6 +11,15 @@ plan 3;
is count([1, 2, 3, 4]), 1, 'count([1, 2, 3, 4])';
is count(my @b = 1, 2, 3, 4), 4, 'count(my @b = 1, 2, 3)';
- is count((1, 2, 3)), 3, 'count(1, 2, 3)';
+ is count((1, 2, 3)), 3, 'count((1, 2, 3))';
+
+ sub count2($a) {
+ my $x = 0;
+ $x++ for $a;
+ return $x;
+ }
+
+ #?rakudo skip "not handling scalars being passed lists correctly"
+ is count2((1,2,3)), 1, 'count2((1,2,3))';
}

0 comments on commit 1216c98

Please sign in to comment.
Something went wrong with that request. Please try again.