[PowerAssert] Add codegen tests

This commit is contained in:
Brian Norman
2023-11-17 12:31:19 -06:00
committed by Space Team
parent 9f5589614a
commit 305c53dd6e
164 changed files with 2308 additions and 1 deletions
@@ -0,0 +1,4 @@
Assertion failed
assert(null is String)
|
false
@@ -0,0 +1,3 @@
fun box() = expectThrowableMessage {
assert(null is String)
}
@@ -0,0 +1,4 @@
Assertion failed
assert("Hello, world!" !is String)
|
false
@@ -0,0 +1,3 @@
fun box() = expectThrowableMessage {
assert("Hello, world!" !is String)
}
@@ -0,0 +1,8 @@
Assertion failed
assert(greeting is String && greeting.length == 2)
| | | | |
| | | | false
| | | 5
| | hello
| true
hello
@@ -0,0 +1,4 @@
fun box() = expectThrowableMessage {
val greeting: Any = "hello"
assert(greeting is String && greeting.length == 2)
}