Commit cc118917 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

test ifelse

parent 83d490fe
......@@ -29,7 +29,16 @@
],
)
expr_true = (A * B - C * D) * E
ex = convert(Num, test)
@test isequal(convert(Num, test), expr_true)
@test isequal(convert(Num, test), (A * B - C * D) * E)
test = SBML.MathApply(
"piecewise",
SBML.Math[
SBML.MathApply("lt", SBML.Math[SBML.MathVal(1), SBML.MathVal(0)]),
SBML.MathVal(123),
SBML.MathVal(456),
],
)
@test isequal(convert(Num, test), 456)
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment