JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package foo
|
||||
|
||||
fun test() {
|
||||
throw throw Exception("catch me")
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
test()
|
||||
error("exception not thrown")
|
||||
}
|
||||
catch (e: Exception) {
|
||||
assertEquals("catch me", e.message)
|
||||
}
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user