Add more precondition check tests

This commit is contained in:
Ben Kimock
2024-10-07 19:34:25 -04:00
parent 0c41c3414c
commit 84dacc1882
35 changed files with 448 additions and 34 deletions

View File

@@ -506,7 +506,7 @@ impl AsciiChar {
pub const unsafe fn digit_unchecked(d: u8) -> Self {
assert_unsafe_precondition!(
check_language_ub,
"`AsciiChar::digit_unchecked` input cannot exceed 9.",
"`ascii::Char::digit_unchecked` input cannot exceed 9.",
(d: u8 = d) => d < 10
);