From ed5952b6977403b135293b93e0575d6ff9df8189 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Fri, 20 Nov 2020 19:54:37 -0500 Subject: [PATCH] division test fix --- tests/test_mathgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mathgen.py b/tests/test_mathgen.py index 1029fbc..4e0311a 100644 --- a/tests/test_mathgen.py +++ b/tests/test_mathgen.py @@ -29,7 +29,7 @@ def test_multiplication(maxRes, maxMulti): def test_division(maxA, maxB): assume(maxA > maxB) problem, solution = division.func(maxA, maxB) - assert eval(problem[:-1]) == float(solution) + assert eval(problem[:-1]) == int(solution) @given(maxRes=st.integers(min_value=1), maxModulo=st.integers(min_value=1))