Speed up JS IR BE tests compiling the common parts (runtime + test common utils) once (on demand) and sharing the result between tests

It's a temporary hack until we implement IR based library format.
It relies on the fact that currently, IR BE generates stable (enough) names.​
This commit is contained in:
Zalim Bashorov
2018-07-13 18:28:30 +03:00
parent 34758110ee
commit 3f0b31dc23
12 changed files with 76 additions and 45 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ fun <T> assertArrayEquals(expected: Array<out T>, actual: Array<out T>, message:
private fun <T> arraysEqual(first: Array<out T>, second: Array<out T>): Boolean {
if (first === second) return true
if (first.size != second.size) return false
for (index in first.indices) {
for (index in 0..first.size - 1) {
if (!equal(first[index], second[index])) return false
}
return true