ursus
07/16/2025, 10:27 PMkotlin-powerAssert = { id = "org.jetbrains.kotlin.plugin.power-assert", version.ref = "kotlin" }
plugins {
...
alias(libs.plugins.kotlin.powerAssert)
}
import kotlin.test.Test
class ExampleUnitTest {
@Test
fun testFunction() {
val hello = "Hello"
val world = "world!"
assert(hello.length == world.length)
}
}
... No matter what I do, I'm getting just the basic
Assertion failed
java.lang.AssertionError: Assertion failed
at foo.bar.ExampleUnitTest.testFunction(ExampleUnitTest.kt:11)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
and not the right messages
what am I doing wrong?ephemient
07/16/2025, 10:42 PM