Skip to content

Conversation

@quapka
Copy link

@quapka quapka commented Apr 1, 2025

This is a backport of a bug fix to version3. More details are available in #1623 and #1624.

The fix is the same, also the tests were just copy-pasted. I've also split the tests into the respective files.

However, I am a bit unclear on the test naming. What is expected suffix supposed to mean?

quapka added 3 commits April 1, 2025 15:31
In case `hd_private` is invalid,  the `to_public()` derivation
should fail. The `hd_private` might be invalid from various reasons,
such as deserializing invalid key or derived, using `derive_private`
into an invalid one.

Finally, nitpick: `return {};` is enclosed in curly brackets to make the
if statement scope explicit.
@evoskuil
Copy link
Member

evoskuil commented Apr 1, 2025

The 4th segment of the name is the test expectation. Whatever the test expects to happen. https://github.com/libbitcoin/libbitcoin-system/wiki/Test-Guide

@evoskuil evoskuil closed this May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants