-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add implementation of hashCode method for Dynamic Value along with the corresponding test #696
base: main
Are you sure you want to change the base?
Conversation
@jdegoes This is ready for review. Thanks! |
Unfortunately, the job is bigger than just hash code. You also need to fix equality. In addition, the test suite needs to be more comprehensive, verifying that different ways of creating equivalent dynamic value compare and hash equal. I will increase the bounty on this one as there is more work than I thought. |
@jdegoes I have fixed equality as well by overriding the |
@jdegoes Just a gentle reminder to please review this! Thanks! |
@jdegoes Really sorry to bother you! Just a gentle reminder. Thanks! |
@jdegoes Just a gentle reminder! Thanks! |
tests/shared/src/test/scala-2/zio/schema/DynamicValueSpec.scala
Outdated
Show resolved
Hide resolved
tests/shared/src/test/scala-2/zio/schema/DynamicValueSpec.scala
Outdated
Show resolved
Hide resolved
@BijenderKumar1 The tests are not testing anything robust. A robust test will be property-based, using dynamically generated |
@jdegoes Thanks for the review. I have added a new function to dynamically generate |
@jdegoes Just a gentle reminder to review this. Thanks! |
@jdegoes Just a gentle reminder to review this. Thanks! |
@jdegoes Just a gentle reminder to review this. Really sorry to bother you repeatedly! Thanks! |
@jdegoes Hope you are doing well! Just a gentle reminder for reviewing this. Thanks! |
@BijenderKumar1 There are still issues. I'll write once I have the time for it |
@987Nabil No worries! I will be super happy to incorporate your suggestions. Thanks! |
@jdegoes Hope you are doing well! Just a gentle reminder to please review this. Thanks! |
/claim #655
In order to resolve the issue of incosistent
hashCode
values forDynamicValue
objects, I have added an implementation of thehashCode
method for theDynamicValue
class. I have also added a test to ensure that thehashCode
values are consistent. Thanks!