Fix: fraction test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Bertrand Benjamin 2021-10-25 15:04:46 +02:00
parent 9919dd77f6
commit 86d66e8b1b

View File

@ -9,7 +9,7 @@ def test_generate_expression():
def test_generate_expression_calculus():
random_expression = mapytex.random.expression("{a}+{a*b}")
assert type(random_expression).__name__ == "Expression"
random_expression = mapytex.random.expression("{a}/{a*b}")
random_expression = mapytex.random.expression("{a}/{a*b}", global_config={"min_max": (2, 10)})
assert type(random_expression).__name__ == "Fraction"
assert random_expression.denominator / random_expression.numerator >=1
assert random_expression.numerator / random_expression.denominator <= 1