Skip to content

Commit 9a5cb59

Browse files
committed
Improve core::ascii coverage
1 parent 408eacf commit 9a5cb59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/coretests/tests/ascii.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,3 +505,8 @@ fn test_escape_ascii_iter() {
505505
let _ = it.advance_back_by(4);
506506
assert_eq!(it.to_string(), r#"fastpath\xffremainder"#);
507507
}
508+
509+
#[test]
510+
fn test_invalid_u8() {
511+
assert_eq!(core::ascii::Char::from_u8(128), None);
512+
}

0 commit comments

Comments
 (0)