Debian Codegraph @

t/last_index.t

raw symbols SCIP
1 #!/usr/bin/env perl
2
3 use autobox::Core;
4 use Test::More tests => 3;
5
6 my @numbers = ( 1 .. 10 );
7
8 is( @numbers->last_index, 9 );
9 is( @numbers->last_index( sub { $_[0] > 2 } ), 9 );
10
11 is( @numbers->last_index( qr/^1/ ), 9 );