[PowerAssert] Add codegen tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
val operation = "sum"
|
||||
dbg(operation, 1 + 2 + 3, "Message:")
|
||||
}
|
||||
|
||||
fun <T> dbg(key: Any, value: T): T = value
|
||||
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|
||||
Reference in New Issue
Block a user