use Test;

plan 2;

# https://github.com/rakudo/rakudo/issues/1330
is-deeply +combinations(100, 70), 29372339821610944823963760,
  'combinations() iterator implements efficient .count-only';
is-deeply ?combinations(100, 70), True,
  'combinations() iterator implements efficient .bool-only';

use Test;

plan 4;

# https://github.com/rakudo/rakudo/issues/1330
is-deeply +combinations(100, 70), 29372339821610944823963760,
  'combinations() iterator implements efficient .count-only';
is-deeply ?combinations(100, 70), True,
  'combinations() iterator implements efficient .bool-only';

is-deeply +permutations(20), 2432902008176640000,
  '&permutations() iterator implements efficient .count-only';
is-deeply ?permutations(20), True,
  '&permutations() iterator implements efficient .bool-only';

Test &permutation offers .count/bool-only opts
Test &permutation offers .count/bool-only opts
