Skip to content

Commit

Permalink
Test &permutation offers .count/bool-only opts
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 23, 2017
1 parent cda4a4d commit 2c27eea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/08-performance/01-iterators.t
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
use Test;

plan 2;
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';

0 comments on commit 2c27eea

Please sign in to comment.