From 1af8269957b784650ea39cd4b114e575d1b96c12 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Wed, 1 Feb 2023 12:56:43 +1000 Subject: [PATCH] fix up tests around alternative format --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 49ef8416..8be4feb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)