Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for out of range index failures
Tests pre-hotfix 2015.01 bug fixed by lizmat++ @ f120204
  • Loading branch information
raydiak committed Jan 23, 2015
1 parent 8fc7d02 commit 3a2be84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S02-lists/indexing.t
@@ -1,7 +1,12 @@

use v6;
use Test;
plan 1;
plan 2;

# RT122423
is (42)[*/2], 42, 'Indexing half way into one element list';

# http://irclog.perlgeek.de/perl6/2015-01-23#i_9994456
{
isa_ok (my @)[*-1], Failure, 'Out of range index returns a Failure object';
}

0 comments on commit 3a2be84

Please sign in to comment.