Assertions
Verify behavior.
What is an Assertion?
An assertion checks that an actual value matches what you expect. If it fails, the test fails with a helpful message.
JUnit5 provides assertions in org.junit.jupiter.api.Assertions.
assertEquals
The most common assertion. Note the order: expected first, actual second.
import org.junit.jupiter.api.Assertions.assertEquals
fun main() {
val sum = 2 + 3
assertEquals(5, sum)
println("passed")
}