[JS IR] Add stdlib regression tests

This commit is contained in:
Svyatoslav Kuzmich
2019-05-05 23:17:35 +03:00
parent 0de1242f68
commit 824c51e7f0
6 changed files with 162 additions and 0 deletions
@@ -0,0 +1,15 @@
// EXPECTED_REACHABLE_NODES: 1750
// KJS_WITH_FULL_RUNTIME
fun box(): String {
val size = 2
val a = Array(size) { "$it" }
val data = Iterable { a.iterator() }
val dataChunked = data.chunked(size).single()
val expectedSingleChunk = data.toList()
if (expectedSingleChunk != dataChunked)
return "Fail"
return "OK"
}