
use v6;
use Test;
plan 1;

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


use v6;
use Test;
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';
}

Add test for out of range index failures
Add test for out of range index failures

Tests pre-hotfix 2015.01 bug fixed by lizmat++ @ f120204aca0276564163c3bc157c0639870d5227
