Improve core::ascii coverage

This commit is contained in:
Christian Poveda 2025-09-12 11:10:45 -05:00
parent 408eacfb95
commit e652f97c6b
No known key found for this signature in database
GPG key ID: 3B422F347D81A9E8

View file

@ -505,3 +505,10 @@ fn test_escape_ascii_iter() {
let _ = it.advance_back_by(4);
assert_eq!(it.to_string(), r#"fastpath\xffremainder"#);
}
#[test]
fn test_invalid_u8() {
for c in 128..=255 {
assert_eq!(core::ascii::Char::from_u8(c), None);
}
}