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 758e864 commit 6f1e0eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/combinatorics/test_combinatorics.py
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))

0 comments on commit 6f1e0eb

Please sign in to comment.