Debian Codegraph @

t/map.t

raw symbols SCIP
1 use Test::More;
2 use strict;
3 use warnings;
4
5 use autobox::Core;
6
7
8 {
9 my @array = qw(1 2 3);
10
11 my @added = @array->map(sub { ++$_ });
12
13 is_deeply \@added, [qw(2 3 4)];
14
15 my $arrayref = @array->map( sub { 'foo' } );
16
17 is ref $arrayref, 'ARRAY', "Returns arrayref in scalar context";
18 }
19
20 done_testing;