diff --git a/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt b/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt index 73ae402..38e9003 100644 --- a/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt +++ b/tools/testing/src/commonMain/kotlin/org/kotlincrypto/macs/MacUnitTest.kt @@ -85,7 +85,7 @@ abstract class MacUnitTest { val copy = mac.copy() copy.reset() - assertNotEquals(copy, mac) + assertNotEquals(copy.hashCode(), mac.hashCode()) assertEquals(expectedResetSmallHash, copy.doFinal().encodeToString(TestData.base16)) assertEquals(expectedUpdateSmallHash, mac.doFinal().encodeToString(TestData.base16)) }