Documentation
1
2
3
4
5
6
7
8
9
use nobility::bin_decode::NbtString;

#[test]
fn test_string_debug_malformed() {
    let string = NbtString::new(b"foo bar\" \0 \xC0");

    let formatted = format!("{:?}", string);
    assert_eq!(formatted, r#""foo bar\" \0 \xC0""#);
}