Lines Matching refs:good_bytes
545 let good_bytes = b"\xf0\x9f\xa6\x80\0"; in test_cstr_to_str() localVariable
546 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str()
561 let good_bytes = b"\xf0\x9f\x90\xA7\0"; in test_cstr_as_str_unchecked() localVariable
562 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked()
575 let good_bytes = CStr::from_bytes_with_nul(b"\xf0\x9f\xa6\x80\0").unwrap(); in test_cstr_display() localVariable
576 assert_eq!(format!("{}", good_bytes), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display()
598 let good_bytes = CStr::from_bytes_with_nul(b"\xf0\x9f\xa6\x80\0").unwrap(); in test_cstr_debug() localVariable
599 assert_eq!(format!("{:?}", good_bytes), "\"\\xf0\\x9f\\xa6\\x80\""); in test_cstr_debug()
612 let good_bytes = BStr::from_bytes(b"\xf0\x9f\xa6\x80"); in test_bstr_display() localVariable
613 assert_eq!(format!("{}", good_bytes), "\\xf0\\x9f\\xa6\\x80"); in test_bstr_display()
626 let good_bytes = BStr::from_bytes(b"\xf0\x9f\xa6\x80"); in test_bstr_debug() localVariable
627 assert_eq!(format!("{:?}", good_bytes), "\"\\xf0\\x9f\\xa6\\x80\""); in test_bstr_debug()