Skip to content

Commit

Permalink
fix up tests around alternative format
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Feb 1, 2023
1 parent e7eaf5b commit 1af8269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,8 +1219,8 @@ mod tests {
check!(buf, "{:X}", u, 36, |c| c.is_uppercase()
|| c.is_digit(10)
|| c == '-');
check!(buf, "{:#x}", u, 32, |c| c.is_lowercase() || c.is_digit(10));
check!(buf, "{:#X}", u, 32, |c| c.is_uppercase() || c.is_digit(10));
check!(buf, "{:#x}", u, 36, |c| c.is_lowercase() || c.is_digit(10) || c == '-');
check!(buf, "{:#X}", u, 36, |c| c.is_uppercase() || c.is_digit(10) || c == '-');

check!(buf, "{:X}", u.hyphenated(), 36, |c| c.is_uppercase()
|| c.is_digit(10)
Expand Down

0 comments on commit 1af8269

Please sign in to comment.