[Wasm] Add box and stdlib tests in wasi mode
This commit is contained in:
committed by
Zalim Bashorov
parent
f42d0b1ed4
commit
983991d46c
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user