[Wasm] Add box and stdlib tests in wasi mode

This commit is contained in:
Igor Yakovlev
2023-07-31 15:46:48 +02:00
committed by Zalim Bashorov
parent f42d0b1ed4
commit 983991d46c
37 changed files with 560 additions and 93 deletions
+14
View File
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@kotlin.wasm.WasmExport
fun runBoxTest(): Boolean {
val boxResult = box() //TODO: Support non-root package box functions
val isOk = boxResult == "OK"
if (!isOk) {
println("Wrong box result '${boxResult}'; Expected 'OK'")
}
return isOk
}