Enable more tests and narrow ignores
This commit is contained in:
parent
f2b99fe23b
commit
f788f79d4b
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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("""
|
||||
|
||||
@ -41,7 +41,6 @@ suspend fun executeSampleTests(fileName: String) {
|
||||
}
|
||||
}
|
||||
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class SamplesTest {
|
||||
|
||||
@Test
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user