[PowerAssert] Add codegen tests
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
Assertion failed
|
||||
assert(listOf("a", "b", "c") == listOf(i++, i++, i++))
|
||||
| | | | | |
|
||||
| | | | | 2
|
||||
| | | | 1
|
||||
| | | 0
|
||||
| | [0, 1, 2]
|
||||
| false
|
||||
[a, b, c]
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
var i = 0
|
||||
assert(listOf("a", "b", "c") == listOf(i++, i++, i++))
|
||||
}
|
||||
Reference in New Issue
Block a user