Add more tests

This commit is contained in:
Iaroslav 2020-06-05 23:04:04 +07:00
parent 557142c2ba
commit d6d9351c9c
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -65,4 +65,18 @@ class AsmTest {
AsmConstProductExpression(AsmVariableExpression("x"), 5.0),
mapOf("x" to 5.0)
)
@Test
fun testVar() = testDoubleExpressionValue(
10000.0,
AsmVariableExpression("x"),
mapOf("x" to 10000.0)
)
@Test
fun testVarWithDefault() = testDoubleExpressionValue(
10000.0,
AsmVariableExpression("x", 10000.0),
mapOf()
)
}