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

plan 3;

ok &lastval =:= &last_value, 'is lastval the same as last_value';

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

# vim: expandtab shiftwidth=4


