5
use Test::More tests => 4;
10
is( $v, 'a', 'single arg' );
12
$v = [ 'a', 'b' ]->maxstr;
13
is( $v, 'b', '2-arg ordered' );
15
$v = [ 'B', 'A' ]->maxstr;
16
is( $v, 'B', '2-arg reverse ordered' );
19
pack( "u", pack( "C*", map { int( rand(256) ) } ( 0 .. int( rand(10) + 2 ) ) ) )
21
my @b = sort { $a cmp $b } @a;
23
is( $v, $b[-1], 'random ordered' );