Algorithm-Combinatorics

 view release on metacpan or  search on metacpan

t/01_combinations.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(combinations);
use Tester;

my $tester = Tester->__new(\&combinations);

my (@result, @expected);

t/02_combinations_with_repetition.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(combinations_with_repetition);
use Tester;

my $tester = Tester->__new(\&combinations_with_repetition);

my (@result, @expected);

t/03_variations.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(variations);
use Tester;

my $tester = Tester->__new(\&variations);

my (@result, @expected);

t/04_variations_with_repetition.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(variations_with_repetition);
use Tester;

my $tester = Tester->__new(\&variations_with_repetition);

my (@result, @expected);

t/05_tuples.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(tuples);
use Tester;

my $tester = Tester->__new(\&tuples);

my (@result, @expected);

t/06_tuples_with_repetition.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(tuples_with_repetition);
use Tester;

my $tester = Tester->__new(\&tuples_with_repetition);

my (@result, @expected);

t/07_permutations.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(permutations);
use Tester;

my $tester = Tester->__new(\&permutations);

my (@result, @expected);

t/08_derangements.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(derangements);
use Tester;

my $tester = Tester->__new(\&derangements);

my (@result, @expected);

t/09_partitions.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(partitions);
use Tester;

my $tester = Tester->__new(\&partitions);

my (@result, @expected);

t/10_partitions_of_size_p.t  view on Meta::CPAN

use strict;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(partitions);
use Tester;

my $tester = Tester->__new(\&partitions);

my (@result, @expected);

t/11_circular_permutations.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(circular_permutations);
use Tester;

my $tester = Tester->__new(\&circular_permutations);

my (@result, @expected);

t/12_complete_permutations.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(complete_permutations);
use Tester;

my $tester = Tester->__new(\&complete_permutations);

my (@result, @expected);

t/13_subsets.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(subsets);
use Tester;

my $tester = Tester->__new(\&subsets);

my (@result, @expected);

t/14_subsets_of_size_k.t  view on Meta::CPAN

use strict;
use warnings;

use FindBin qw($Bin);
use lib $Bin;

use Test::More qw(no_plan);

use Algorithm::Combinatorics qw(subsets);
use Tester;

my $tester = Tester->__new(\&subsets);

my (@result, @expected);



( run in 0.528 second using v1.01-cache-2.11-cpan-87723dcf8b7 )