Enable more tests and narrow ignores

This commit is contained in:
Sergey Chernov 2026-01-29 03:02:26 +03:00
parent f2b99fe23b
commit f788f79d4b
8 changed files with 9 additions and 9 deletions

View File

@ -20,7 +20,7 @@ import net.sergeych.lyng.eval
import kotlin.test.Ignore import kotlin.test.Ignore
import kotlin.test.Test import kotlin.test.Test
@Ignore("TODO(bytecode-only): uses fallback") @Ignore("TODO(bytecode-only): uses fallback (coroutines)")
class TestCoroutines { class TestCoroutines {
@Test @Test

View File

@ -24,7 +24,7 @@ import net.sergeych.lyng.eval
import kotlin.test.Ignore import kotlin.test.Ignore
import kotlin.test.Test import kotlin.test.Test
@Ignore("TODO(bytecode-only): uses fallback") @Ignore("TODO(bytecode-only): uses fallback (C3 MRO)")
class MIC3MroTest { class MIC3MroTest {
@Test @Test

View File

@ -26,7 +26,6 @@ import kotlin.test.Test
import kotlin.test.assertFails import kotlin.test.assertFails
import kotlin.test.assertTrue import kotlin.test.assertTrue
@Ignore("TODO(bytecode-only): uses fallback (cast failure message)")
class MIDiagnosticsTest { class MIDiagnosticsTest {
@Test @Test
@ -87,6 +86,7 @@ class MIDiagnosticsTest {
} }
@Test @Test
@Ignore("TODO(bytecode-only): cast message mismatch")
fun castFailureMentionsActualAndTargetTypes() = runTest { fun castFailureMentionsActualAndTargetTypes() = runTest {
val ex = assertFails { val ex = assertFails {
eval( eval(

View File

@ -20,7 +20,7 @@ import net.sergeych.lyng.eval
import kotlin.test.Ignore import kotlin.test.Ignore
import kotlin.test.Test import kotlin.test.Test
@Ignore("TODO(bytecode-only): uses fallback") @Ignore("TODO(bytecode-only): uses fallback (qualified MI)")
class MIQualifiedDispatchTest { class MIQualifiedDispatchTest {
@Test @Test

View File

@ -26,7 +26,6 @@ import kotlin.test.Ignore
import kotlin.test.Test import kotlin.test.Test
import kotlin.test.assertFailsWith import kotlin.test.assertFailsWith
@Ignore("TODO(bytecode-only): uses fallback")
class NamedArgsTest { class NamedArgsTest {
@Test @Test

View File

@ -31,7 +31,6 @@ import kotlin.test.assertContentEquals
import kotlin.test.assertEquals import kotlin.test.assertEquals
import kotlin.test.assertTrue import kotlin.test.assertTrue
@Ignore("TODO(bytecode-only): uses fallback (unary minus, MI, simple types)")
class LynonTests { class LynonTests {
@Test @Test
@ -344,6 +343,7 @@ class LynonTests {
@Test @Test
@Ignore("TODO(bytecode-only): unary minus regression")
fun testUnaryMinus() = runTest { fun testUnaryMinus() = runTest {
eval( eval(
""" """
@ -354,6 +354,7 @@ class LynonTests {
} }
@Test @Test
@Ignore("TODO(bytecode-only): simple types regression")
fun testSimpleTypes() = runTest { fun testSimpleTypes() = runTest {
testScope().eval( testScope().eval(
""" """
@ -704,6 +705,7 @@ class Wallet( id, ownerKey, balance=0, createdAt=Instant.now().truncateToSecond(
@Test @Test
@Ignore("TODO(bytecode-only): MI serialization fallback")
fun testMISerialization() = runTest { fun testMISerialization() = runTest {
val s = testScope() val s = testScope()
s.eval(""" s.eval("""

View File

@ -41,7 +41,6 @@ suspend fun executeSampleTests(fileName: String) {
} }
} }
@Ignore("TODO(bytecode-only): uses fallback")
class SamplesTest { class SamplesTest {
@Test @Test

View File

@ -27,7 +27,7 @@ import kotlin.test.assertEquals
* Additional JVM-only fast functional tests migrated from ScriptTest to avoid MPP runs. * Additional JVM-only fast functional tests migrated from ScriptTest to avoid MPP runs.
* Keep each test fast (<1s) and with clear assertions. * Keep each test fast (<1s) and with clear assertions.
*/ */
@Ignore("TODO(bytecode-only): uses fallback (logical ops/binarySearch)") @Ignore("TODO(bytecode-only): uses fallback (binarySearch/logical chains)")
class ScriptSubsetJvmTest_Additions { class ScriptSubsetJvmTest_Additions {
private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value
private suspend fun evalList(code: String): List<Any?> = (Scope().eval(code) as ObjList).list.map { (it as? ObjInt)?.value ?: it } private suspend fun evalList(code: String): List<Any?> = (Scope().eval(code) as ObjList).list.map { (it as? ObjInt)?.value ?: it }
@ -105,7 +105,7 @@ class ScriptSubsetJvmTest_Additions {
} }
@Ignore("TODO(bytecode-only): uses fallback") @Ignore("TODO(bytecode-only): hangs (while/continue?)")
class ScriptSubsetJvmTest_Additions2 { class ScriptSubsetJvmTest_Additions2 {
private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value