Improve core::ascii coverage
This commit is contained in:
parent
408eacfb95
commit
e652f97c6b
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue