-
-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test &permutation offers .count/bool-only opts
- Loading branch information
1 parent
cda4a4d
commit 2c27eea
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |