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

plan 3;

my @list = reverse "AA".."ZZ";
is-deeply minmaxstr(@list), ("AA","ZZ"), "get minmaxstr of reversed range";

@list.push: "ZZ Top";
is-deeply minmaxstr(@list), ("AA","ZZ Top"), "even number of elements";

is-deeply minmaxstr(("foo",)), ("foo","foo"), "single element list";

# vim: expandtab shiftwidth=4


