Skip to content

Commit

Permalink
add assertion to test
Browse files Browse the repository at this point in the history
  • Loading branch information
aSemy committed Sep 16, 2022
1 parent 8244129 commit 8bacef4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -3,6 +3,7 @@ package io.mockk.core
import io.mockk.every
import io.mockk.mockk
import kotlin.test.Test
import kotlin.test.assertEquals


class ValueClassSupportTest {
Expand All @@ -14,7 +15,9 @@ class ValueClassSupportTest {
every { func() } returns JavaEnum.A
}

mock.func() // throws KotlinReflectionInternalError
val result = mock.func() // check this doesn't throw KotlinReflectionInternalError

assertEquals(JavaEnum.A, result)
}

}
Expand Down

0 comments on commit 8bacef4

Please sign in to comment.