Enable 4 ScriptTest cases

This commit is contained in:
Sergey Chernov 2026-01-30 10:16:51 +03:00
parent 40b6ec023c
commit b5f20e1650

View File

@ -56,14 +56,12 @@ import kotlin.test.Ignore
* *
*/ */
class ScriptTest { class ScriptTest {
@Ignore("incremental enable")
@Test @Test
fun testVersion() { fun testVersion() {
println("--------------------------------------------") println("--------------------------------------------")
println("version = ${LyngVersion}") println("version = ${LyngVersion}")
} }
@Ignore("incremental enable")
@Test @Test
fun testClosureSeesCallerLocalsInLaunch() = runTest { fun testClosureSeesCallerLocalsInLaunch() = runTest {
val scope = Script.newScope() val scope = Script.newScope()
@ -82,7 +80,6 @@ class ScriptTest {
assertEquals(1L, (res as ObjInt).value) assertEquals(1L, (res as ObjInt).value)
} }
@Ignore("incremental enable")
@Test @Test
fun testClosureResolvesGlobalsInLaunch() = runTest { fun testClosureResolvesGlobalsInLaunch() = runTest {
val scope = Script.newScope() val scope = Script.newScope()
@ -229,7 +226,6 @@ class ScriptTest {
assertEquals(1, ti.cancelCount) assertEquals(1, ti.cancelCount)
} }
@Ignore("incremental enable")
@Test @Test
fun parseNewlines() { fun parseNewlines() {
fun check(expected: String, type: Token.Type, row: Int, col: Int, src: String, offset: Int = 0) { fun check(expected: String, type: Token.Type, row: Int, col: Int, src: String, offset: Int = 0) {