Skip to content
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

test(utils): add unit tests for utils.rs (HashType and serde) #59

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

LeoNero
Copy link
Member

@LeoNero LeoNero commented Jul 11, 2022

Tests for utils.rs. They are mostly simple unit tests to make sure everything is working as we expect.

Also, note that from_str for Vec<u8> returns an error if the string starts with 0x, while this does not happen to theo ther types.

Copy link
Member

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you add this to the changelog?

@LeoNero
Copy link
Member Author

LeoNero commented Jul 11, 2022

Done @TheCharlatan

@LeoNero
Copy link
Member Author

LeoNero commented Jul 11, 2022

wait a second, I messed up the commits

@LeoNero
Copy link
Member Author

LeoNero commented Jul 11, 2022

done

@TheCharlatan TheCharlatan merged commit cc006ed into monero-rs:master Jul 13, 2022
refring pushed a commit to refring/monero-rpc-rs that referenced this pull request Oct 16, 2022
…-rs#59)

* test(utils): add unit tests for utils.rs (HashType and serde)

* docs(CHANGELOG): update changelog to reflect new tests in utils.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants