### ----------------------------------------------------
### -- ParaSeq
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/41-permutations.rakutest
### ----------------------------------------------------
use Test;
use ParaSeq;

plan 4;

my constant $elems        = 9;
my constant @list         = (^$elems).List;
my constant @permutations = @list.permutations.List;
my constant $batch        = 4;

for 1, ParaSeq.default-degree {
    my $seq := @list.&hyperize($batch, $_).permutations;
    isa-ok $seq, $_ == 1 ?? Seq !! ParaSeq;
    is-deeply $seq.List, @permutations, ".permutations with degree = $_";
}

# vim: expandtab shiftwidth=4


