From 502953a597e43c6adccca37b07227d2feb2e8ed2 Mon Sep 17 00:00:00 2001 From: BijenderKumar1 Date: Fri, 16 Aug 2024 05:48:21 +0000 Subject: [PATCH] Add property based tests for generated Dynamic Value --- tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala b/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala index d518bfcc4..a4f6df7b2 100644 --- a/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala +++ b/tests/shared/src/test/scala/zio/schema/DynamicValueSpec.scala @@ -111,7 +111,7 @@ object DynamicValueSpec extends ZIOSpecDefault { }, test("equivalent DynamicValues have same hashCode and equality") { check(DynamicValueGen.anyDynamicValue) { dynamicValue => - val dynamicValueCopy = dynamicValue // Assuming the generation ensures equivalence + val dynamicValueCopy = dynamicValue assert(dynamicValue.hashCode())(equalTo(dynamicValueCopy.hashCode())) && assert(dynamicValue)(equalTo(dynamicValueCopy)) }