diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-06-21 11:44:59 +0200 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-07-03 03:01:36 +0200 |
| commit | c93cb40b90b5f862bf448136cbe608f43ae0f62f (patch) | |
| tree | 5dc4e6408de2db97d863c62ee9298b24fa0bde53 /library/std/src/sys/unix/os_str/tests.rs | |
| parent | 798baebde1fe77e5a660490ec64e727a5d79970d (diff) | |
| download | rust-c93cb40b90b5f862bf448136cbe608f43ae0f62f.tar.gz rust-c93cb40b90b5f862bf448136cbe608f43ae0f62f.zip | |
Move `os_str_bytes` to `sys::unix` and reuse it on other platforms.
Diffstat (limited to 'library/std/src/sys/unix/os_str/tests.rs')
| -rw-r--r-- | library/std/src/sys/unix/os_str/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/os_str/tests.rs b/library/std/src/sys/unix/os_str/tests.rs new file mode 100644 index 00000000000..37967378155 --- /dev/null +++ b/library/std/src/sys/unix/os_str/tests.rs @@ -0,0 +1,10 @@ +use super::*; + +#[test] +fn slice_debug_output() { + let input = Slice::from_u8_slice(b"\xF0hello,\tworld"); + let expected = r#""\xF0hello,\tworld""#; + let output = format!("{:?}", input); + + assert_eq!(output, expected); +} |
