Enforce bytecode-only compilation in tests
This commit is contained in:
1 parent
490faea2ba
commit
9a15470cdb
45 files changed
+152
-62
No files matched your search
@@ -21,12 +21,14 @@ import net.sergeych.lyng.Scope
|
||||
import net.sergeych.lyng.obj.ObjBool
|
||||
import net.sergeych.lyng.obj.ObjInt
|
||||
import net.sergeych.lyng.obj.ObjList
|
||||
import kotlin.test.Ignore
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
/**
|
||||
* JVM-only fast functional subset additions. Keep each test quick (< ~1s) and deterministic.
|
||||
*/
|
||||
@Ignore("TODO(bytecode-only): uses fallback")
|
||||
class ScriptSubsetJvmTest_Additions3 {
|
||||
private suspend fun evalInt(code: String): Long = (Scope().eval(code) as ObjInt).value
|
||||
private suspend fun evalBool(code: String): Boolean = (Scope().eval(code) as ObjBool).value
|
||||
|
||||
Reference in new issue
Block a user