diff --git a/test-modules/client-tests/src/jvmTest/kotlin/io/mockk/core/ValueClassSupportTest.kt b/test-modules/client-tests/src/jvmTest/kotlin/io/mockk/core/ValueClassSupportTest.kt index c6e91983e..4826fe852 100644 --- a/test-modules/client-tests/src/jvmTest/kotlin/io/mockk/core/ValueClassSupportTest.kt +++ b/test-modules/client-tests/src/jvmTest/kotlin/io/mockk/core/ValueClassSupportTest.kt @@ -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 { @@ -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) } }