-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
758e864
commit 6f1e0eb
Showing
1 changed file
with
3 additions
and
5 deletions.
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,12 +1,10 @@ | ||
from pyrival.combinatorics import combinatorics | ||
|
||
def test_catalan_recursive(catalan): | ||
assert all(combinatorics.catalan_recursive(i) == j for i, j in enumerate(A)) | ||
|
||
assert all(combinatorics.catalan_recursive(i) == j for i, j in enumerate(catalan)) | ||
|
||
def test_derangements(derangements): | ||
assert all(combinatorics.derangements(i) == j for i, j in enumerate(A)) | ||
|
||
assert all(combinatorics.derangements(i) == j for i, j in enumerate(derangements)) | ||
|
||
def test_catalan(catalan): | ||
assert all(combinatorics.catalan(i) == j for i, j in enumerate(A)) | ||
assert all(combinatorics.catalan(i) == j for i, j in enumerate(catalan)) |