Enable ScriptTest arithmetic and string ops
This commit is contained in:
parent
72a060d42f
commit
e16f054010
@ -458,7 +458,6 @@ class ScriptTest {
|
|||||||
assertEquals(ObjNull, scope.eval("null"))
|
assertEquals(ObjNull, scope.eval("null"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("incremental enable")
|
|
||||||
@Test
|
@Test
|
||||||
fun arithmeticOperatorsTest() = runTest {
|
fun arithmeticOperatorsTest() = runTest {
|
||||||
assertEquals(2, eval("5/2").toInt())
|
assertEquals(2, eval("5/2").toInt())
|
||||||
@ -478,7 +477,6 @@ class ScriptTest {
|
|||||||
assertEquals(3.0, eval("round(5.1/2)").toDouble())
|
assertEquals(3.0, eval("round(5.1/2)").toDouble())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("incremental enable")
|
|
||||||
@Test
|
@Test
|
||||||
fun arithmetics() = runTest {
|
fun arithmetics() = runTest {
|
||||||
// integer
|
// integer
|
||||||
@ -500,7 +498,6 @@ class ScriptTest {
|
|||||||
assertEquals(2.5, eval("5.0 / 2.0").toDouble())
|
assertEquals(2.5, eval("5.0 / 2.0").toDouble())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("incremental enable")
|
|
||||||
@Test
|
@Test
|
||||||
fun arithmeticParenthesisTest() = runTest {
|
fun arithmeticParenthesisTest() = runTest {
|
||||||
assertEquals(17, eval("2.0 + 3 * 5").toInt())
|
assertEquals(17, eval("2.0 + 3 * 5").toInt())
|
||||||
@ -509,7 +506,6 @@ class ScriptTest {
|
|||||||
assertEquals(24, eval("(2 + 3) * 5 -1").toInt())
|
assertEquals(24, eval("(2 + 3) * 5 -1").toInt())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("incremental enable")
|
|
||||||
@Test
|
@Test
|
||||||
fun stringOpTest() = runTest {
|
fun stringOpTest() = runTest {
|
||||||
assertEquals("foobar", eval(""" "foo" + "bar" """).toString())
|
assertEquals("foobar", eval(""" "foo" + "bar" """).toString())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user