Skip to content

Commit

Permalink
Update KmmResultTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
iaik-jheher authored and JesusMcCloud committed Jun 17, 2024
1 parent b02e804 commit accb4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/KmmResultTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class KmmResultTest {
fun assertCalled(block: ((Unit?)->Unit)->Unit) {
var hit = false
block { assertNull(it); hit = true }
if (hit) asserter.fail("Expected function was not called")
if (!hit) asserter.fail("Expected function was not called")
}

fun assertUnreachable(): Nothing {
Expand Down

0 comments on commit accb4f2

Please sign in to comment.