Fix AST JS test

This commit is contained in:
Alexander Nozik 2021-12-29 20:08:26 +03:00
parent 4badc3e044
commit 2f96d619fc
No known key found for this signature in database
GPG Key ID: F7FCF2DD25C71357

View File

@ -19,8 +19,8 @@ import kotlin.test.assertFailsWith
internal class TestCompilerVariables { internal class TestCompilerVariables {
@Test @Test
fun testNoVariables() = runCompilerTest { fun testNoVariables() = runCompilerTest {
val expr = "0".parseMath().compileToExpression(IntRing) val expr = "0".parseMath().compileToExpression(DoubleField)
assertEquals(0, expr()) assertEquals(0.0, expr(), 0.0001)
} }
@Test @Test