Skip to content

Commit b79744c

Browse files
pvdrzNoratrieb
andauthored
Update library/coretests/tests/ascii.rs
Co-authored-by: nora <[email protected]>
1 parent 9a5cb59 commit b79744c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/coretests/tests/ascii.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,5 +508,7 @@ fn test_escape_ascii_iter() {
508508

509509
#[test]
510510
fn test_invalid_u8() {
511-
assert_eq!(core::ascii::Char::from_u8(128), None);
511+
for c in 128..=255 {
512+
assert_eq!(core::ascii::Char::from_u8(c), None);
513+
}
512514
}

0 commit comments

Comments
 (0)