Make several tests running on JS backend.
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.ArrayList
|
||||
import java.util.Arrays
|
||||
|
||||
fun box(): String {
|
||||
val list = ArrayList<Pair<String,String>>()
|
||||
list.add(Pair("Sample", "http://cyber.law.harvard.edu/rss/examples/rss2sample.xml"))
|
||||
@@ -13,7 +7,7 @@ fun box(): String {
|
||||
|
||||
val keys = list.map { it.first }.toTypedArray<String>()
|
||||
|
||||
val keysToString = Arrays.toString(keys)
|
||||
val keysToString = keys.contentToString()
|
||||
if (keysToString != "[Sample, Scripting]") return keysToString
|
||||
|
||||
return "OK"
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.Arrays
|
||||
|
||||
fun getCopyToArray(): Array<Int> = Arrays.asList(2, 3, 9).toTypedArray()
|
||||
fun getCopyToArray(): Array<Int> = listOf(2, 3, 9).toTypedArray()
|
||||
|
||||
fun box(): String {
|
||||
val str = Arrays.toString(getCopyToArray())
|
||||
val str = getCopyToArray().contentToString()
|
||||
if (str != "[2, 3, 9]") return str
|
||||
|
||||
return "OK"
|
||||
|
||||
Reference in New Issue
Block a user