### ----------------------------------------------------
### -- List::MoreUtils
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/firstval.rakutest
### ----------------------------------------------------
use Test;
use List::MoreUtils <firstval first_value>;

plan 3;

ok &firstval =:= &first_value, 'is firstval the same as first_value';

is firstval( { $_ > 5 }, (4 .. 9) ), 6, "right first result";
is firstval( { $_ > 5 }, (1 .. 4) ), Nil, 'did we get no result';

# vim: expandtab shiftwidth=4


