Add zero call in MSTField test

This commit is contained in:
Iaroslav 2020-06-25 19:46:32 +07:00
parent 46f99139e2
commit 7faa48be58
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -93,7 +93,7 @@ class TestAsmAlgebras {
(3.0 - (symbol("x") + (multiply(add(number(1.0), number(1.0)), 2) + 1.0))) * 3 - 1.0
+ number(1),
number(1) / 2 + number(2.0) * one
)
) + zero
}("x" to 2.0)
val res2 = RealField.mstInField {
@ -102,7 +102,7 @@ class TestAsmAlgebras {
(3.0 - (symbol("x") + (multiply(add(number(1.0), number(1.0)), 2) + 1.0))) * 3 - 1.0
+ number(1),
number(1) / 2 + number(2.0) * one
)
) + zero
}.compile()("x" to 2.0)
assertEquals(res1, res2)