-
Notifications
You must be signed in to change notification settings - Fork 104
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 unit tests for eth address #571
Conversation
While having more tests is generally better, I'm not sure if I get the point of adding these. The tests added are more of testing |
@xJonathanLEI Here there were several objectives:
|
Right. I guess what I meant is that it's better to target specific scenarios directly instead of feeding a list of random addresses. The JSON list thingy feels like you're fuzzing it, but it's just a very simple decoding method that I think we can simply test the edge cases directly. |
@xJonathanLEI No problem, let me know if you still want to close it or I can just replace the "fuzzing" by 2-3 edge cases. Both are fine to me (I've no problem with closing a PR, always a way to learn something). |
Specific edge cases are surely desirable. Thanks! |
@xJonathanLEI Fixed |
Rebased on |
7424472
to
ac63405
Compare
ac63405
to
6cd24e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
This pull request adds unit tests for Ethereum address conversion in the
starknet-core
crate.Changes