mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
division test fix
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user