From 6f1e0ebb688b1dfa9df61295b314de1fde8c487f Mon Sep 17 00:00:00 2001 From: Bjorn Date: Sat, 13 Jun 2020 15:36:43 +0200 Subject: [PATCH] Fixed failing tests --- tests/combinatorics/test_combinatorics.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/combinatorics/test_combinatorics.py b/tests/combinatorics/test_combinatorics.py index 77b4a42..1fd3e54 100644 --- a/tests/combinatorics/test_combinatorics.py +++ b/tests/combinatorics/test_combinatorics.py @@ -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))