Permalink
Browse files

use *-1 to indicate from end of list.

std++
  • Loading branch information...
1 parent 8ccf840 commit e488f73946b7f8bd916f345810bacda69a9d28f2 @coke coke committed Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 S02-types/hash.t
View
@@ -300,7 +300,7 @@ eval_lives_ok('my $rt75694 = { has-b => 42 }', "can have a bareword key starting
#?pugs skip 'No compatible multi variant found: "&is"'
#?niecza skip "Unsupported use of [-1] subscript to access from end of array"
{
- is {}[-1], Failure, 'array-indexing a hash with a negative index is Failure';
+ is {}[*-1], Failure, 'array-indexing a hash with a negative index is Failure';
}
done;

0 comments on commit e488f73

Please sign in to comment.