Skip to content

Commit

Permalink
S03-operators/range.t: Add note about use of @array as arguments to i…
Browse files Browse the repository at this point in the history
…nfix:<..>

git-svn-id: http://svn.pugscode.org/pugs@21125 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
pmichaud committed Jun 30, 2008
1 parent 4c815b6 commit 748e055
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions S03-operators/range.t
Expand Up @@ -78,6 +78,12 @@ is [^0], [], "unary ^0 produces null range";
}

# Test that the operands are forced to scalar context
## From pmichaud 2006-06-30: These tests may be incorrect.
## C<@one> in ## item context returns an Array, not a number
## -- use C< +@one > to get the number of elements. So, we
## need to either declare that there's a version of infix:<..>
## that coerces its arguments to numeric context, or we can
## remove these tests from the suite.
#?rakudo skip 'MMD function __cmp not found for types (101, 95)'
{
my @one = (1,);
Expand Down

0 comments on commit 748e055

Please sign in to comment.