about summary refs log tree commit diff
path: root/library/std/src/sys/unix/os_str/tests.rs
blob: 379673781557389d37828b7431b05a080a12a954 (plain)
1
2
3
4
5
6
7
8
9
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);
}