-
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
280747c
commit 758e864
Showing
2 changed files
with
10 additions
and
10 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,4 +1,4 @@ | ||
from pyrival.phi import * | ||
from pyrival.phi import phi as f | ||
|
||
def test_phi(f): | ||
assert phi(len(f) - 1) == f | ||
def test_phi(phi): | ||
assert f(len(phi) - 1) == phi |
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,12 @@ | ||
from pyrival.combinatorics import * | ||
from pyrival.combinatorics import combinatorics | ||
|
||
def test_catalan_recursive(A): | ||
assert all(catalan_recursive(i) == j for i, j in enumerate(A)) | ||
def test_catalan_recursive(catalan): | ||
assert all(combinatorics.catalan_recursive(i) == j for i, j in enumerate(A)) | ||
|
||
|
||
def test_derangements(A): | ||
assert all(derangements(i) == j for i, j in enumerate(A)) | ||
def test_derangements(derangements): | ||
assert all(combinatorics.derangements(i) == j for i, j in enumerate(A)) | ||
|
||
|
||
def test_catalan(A): | ||
assert all(catalan(i) == j for i, j in enumerate(A)) | ||
def test_catalan(catalan): | ||
assert all(combinatorics.catalan(i) == j for i, j in enumerate(A)) |