mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Updated test_mathgen.py
This commit is contained in:
@@ -17,13 +17,12 @@ def test_subtraction(maxMinuend, maxDiff):
|
|||||||
problem, solution = subtraction.func(maxMinuend, maxDiff)
|
problem, solution = subtraction.func(maxMinuend, maxDiff)
|
||||||
assert eval(problem[:-1]) == int(solution)
|
assert eval(problem[:-1]) == int(solution)
|
||||||
|
|
||||||
"""
|
|
||||||
@given(maxRes=st.integers(min_value=1), maxMulti=st.integers(min_value=1))
|
@given(maxMulti=st.integers(min_value=1))
|
||||||
def test_multiplication(maxRes, maxMulti):
|
def test_multiplication(maxMulti):
|
||||||
assume(maxRes > maxMulti)
|
problem, solution = multiplication.func(maxMulti)
|
||||||
problem, solution = multiplication.func(maxRes, maxMulti)
|
|
||||||
assert eval(problem[:-1]) == int(solution)
|
assert eval(problem[:-1]) == int(solution)
|
||||||
"""
|
|
||||||
|
|
||||||
@given(maxA=st.integers(min_value=1), maxB=st.integers(min_value=1))
|
@given(maxA=st.integers(min_value=1), maxB=st.integers(min_value=1))
|
||||||
def test_division(maxA, maxB):
|
def test_division(maxA, maxB):
|
||||||
|
|||||||
Reference in New Issue
Block a user