Skip to content

Commit

Permalink
Add property based tests for generated Dynamic Value
Browse files Browse the repository at this point in the history
  • Loading branch information
BijenderKumar1 committed Aug 16, 2024
1 parent 156181f commit 502953a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 502953a

Please sign in to comment.