[JS IR BE] Arrays, varargs

This commit is contained in:
Anton Bannykh
2018-09-12 14:31:22 +03:00
parent e24f68c357
commit 2e709a81fa
470 changed files with 761 additions and 585 deletions
+9
View File
@@ -34,3 +34,12 @@ fun testTrue(f: () -> Boolean) {
fun testFalse(f: () -> Boolean) {
assertFalse(f(), f.toString())
}
fun assertFails(block: () -> Unit): Throwable {
try {
block()
} catch (t: Throwable) {
return t
}
fail("Expected an exception to be thrown, but was completed successfully.")
}