backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
enum class Empty
|
||||
|
||||
fun box(): String {
|
||||
if (Empty.values().size != 0) return "Fail: ${Empty.values()}"
|
||||
|
||||
try {
|
||||
val found = Empty.valueOf("nonExistentEntry")
|
||||
return "Fail: $found"
|
||||
}
|
||||
catch (e: Exception) {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user