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.Test
@Ignore("TODO(bytecode-only): uses fallback")
@Ignore("TODO(bytecode-only): uses fallback (coroutines)")
class TestCoroutines {
@Test

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,7 +27,7 @@ import kotlin.test.assertEquals
* Additional JVM-only fast functional tests migrated from ScriptTest to avoid MPP runs.
* 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 {
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 }
@ -105,7 +105,7 @@ class ScriptSubsetJvmTest_Additions {
}
@Ignore("TODO(bytecode-only): uses fallback")
@Ignore("TODO(bytecode-only): hangs (while/continue?)")
class ScriptSubsetJvmTest_Additions2 {
private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value