-
Notifications
You must be signed in to change notification settings - Fork 9
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 nth unit tests #32
Conversation
763bece
to
38cad31
Compare
CI is broken because of another MSRV break in our sole dependency. |
Thanks for checking the ci fail for me, I added a pinning patch at the front of the PR. No other changes. |
Clippy emits: error: useless use of `vec!` As suggested, remove the macro call. Rename the variable to `bytes` instead of `v` to better suit the new array type.
Add some unit tests to prove that the default implementation of `nth` works correctly for `HexToBytesIter` and `BytesToHexIter`. Resolve: rust-bitcoin#14
Needs #33 to get past CI. |
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.
ACK e2fd51a
This PR is total rubbish because it misses the whole point that implementing a custom |
Yes, but surely there's still value in testing that the perf improvements don't break the functionality? |
True, I might have been a bit trigger happy with the close button. We definitely should put unit tests in the perf PR. |
Add some unit tests to prove that the default implementation of
nth
works correctly forHexToBytesIter
andBytesToHexIter
.Resolve: #14