Lines Matching refs:assert_eq
621 assert_eq!(checked_str, ""); in test_cstr_to_str()
638 assert_eq!(unchecked_str, ""); in test_cstr_as_str_unchecked()
644 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_cstr_display()
646 assert_eq!(format!("{non_printables}"), "\\x01\\x09\\x0a"); in test_cstr_display()
648 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_cstr_display()
650 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display()
661 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS); in test_cstr_display_all_bytes()
667 assert_eq!(format!("{hello_world:?}"), "\"hello, world!\""); in test_cstr_debug()
669 assert_eq!(format!("{non_printables:?}"), "\"\\x01\\x09\\x0a\""); in test_cstr_debug()
671 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\""); in test_cstr_debug()
673 assert_eq!(format!("{good_bytes:?}"), "\"\\xf0\\x9f\\xa6\\x80\""); in test_cstr_debug()
679 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_bstr_display()
681 assert_eq!(format!("{escapes}"), "_\\t_\\n_\\r_\\_'_\"_"); in test_bstr_display()
683 assert_eq!(format!("{others}"), "\\x01"); in test_bstr_display()
685 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_bstr_display()
687 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_bstr_display()
693 assert_eq!(format!("{hello_world:?}"), "\"hello, world!\""); in test_bstr_debug()
695 assert_eq!(format!("{escapes:?}"), "\"_\\t_\\n_\\r_\\\\_'_\\\"_\""); in test_bstr_debug()
697 assert_eq!(format!("{others:?}"), "\"\\x01\""); in test_bstr_debug()
699 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\""); in test_bstr_debug()
701 assert_eq!(format!("{good_bytes:?}"), "\"\\xf0\\x9f\\xa6\\x80\""); in test_bstr_debug()