diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-16 20:42:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-16 20:42:22 +0200 |
| commit | f4a522d1f8976d1fc6417c265d7b2658fa1168d4 (patch) | |
| tree | d94fd8623d84c111656b3b69063425b2e2e6bfab | |
| parent | a811bb631a6dc773a1fcb6cc93d13e65cb987982 (diff) | |
| parent | e652f97c6b71d485473c98bb0e5be1328db9bc45 (diff) | |
| download | rust-f4a522d1f8976d1fc6417c265d7b2658fa1168d4.tar.gz rust-f4a522d1f8976d1fc6417c265d7b2658fa1168d4.zip | |
Rollup merge of #146474 - ferrocene:pvdrz/improve-ascii-coverage, r=Noratrieb
Improve `core::ascii` coverage This PR improves the `core::ascii` coverage by adding a new test to `coretests` r? `@workingjubilee`
| -rw-r--r-- | library/coretests/tests/ascii.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/coretests/tests/ascii.rs b/library/coretests/tests/ascii.rs index ce09ee507f1..297aa114e00 100644 --- a/library/coretests/tests/ascii.rs +++ b/library/coretests/tests/ascii.rs @@ -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); + } +} |
