Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn-martinsson committed Jun 13, 2020
1 parent 280747c commit 758e864
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions tests/algebra/test_phi.py
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
14 changes: 7 additions & 7 deletions tests/combinatorics/test_combinatorics.py
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))

0 comments on commit 758e864

Please sign in to comment.