This commit is contained in:
parent
9919dd77f6
commit
86d66e8b1b
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user