forked from rust-bitcoin/hex-conservative
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate using even length hex string
There are a couple of problems with the width/precision code when we truncate: - We are printing one too many hex characters if truncation is odd - The nested precision code (inside width) is doing the wrong comparison Includes unit tests to verify the behaviour of the new code. Fix: rust-bitcoin#70
- Loading branch information
Showing
1 changed file
with
26 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters