Lines Matching refs:assert_eq
548 assert_eq!(checked_str, ""); in test_cstr_to_str()
564 assert_eq!(unchecked_str, ""); in test_cstr_as_str_unchecked()
570 assert_eq!(format!("{}", hello_world), "hello, world!"); in test_cstr_display()
572 assert_eq!(format!("{}", non_printables), "\\x01\\x09\\x0a"); in test_cstr_display()
574 assert_eq!(format!("{}", non_ascii), "d\\xe9j\\xe0 vu"); in test_cstr_display()
576 assert_eq!(format!("{}", good_bytes), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display()
587 assert_eq!(format!("{}", cstr), ALL_ASCII_CHARS); in test_cstr_display_all_bytes()
593 assert_eq!(format!("{:?}", hello_world), "\"hello, world!\""); in test_cstr_debug()
595 assert_eq!(format!("{:?}", non_printables), "\"\\x01\\x09\\x0a\""); in test_cstr_debug()
597 assert_eq!(format!("{:?}", non_ascii), "\"d\\xe9j\\xe0 vu\""); in test_cstr_debug()
599 assert_eq!(format!("{:?}", good_bytes), "\"\\xf0\\x9f\\xa6\\x80\""); in test_cstr_debug()
605 assert_eq!(format!("{}", hello_world), "hello, world!"); in test_bstr_display()
607 assert_eq!(format!("{}", escapes), "_\\t_\\n_\\r_\\_'_\"_"); in test_bstr_display()
609 assert_eq!(format!("{}", others), "\\x01"); in test_bstr_display()
611 assert_eq!(format!("{}", non_ascii), "d\\xe9j\\xe0 vu"); in test_bstr_display()
613 assert_eq!(format!("{}", good_bytes), "\\xf0\\x9f\\xa6\\x80"); in test_bstr_display()
619 assert_eq!(format!("{:?}", hello_world), "\"hello, world!\""); in test_bstr_debug()
621 assert_eq!(format!("{:?}", escapes), "\"_\\t_\\n_\\r_\\\\_'_\\\"_\""); in test_bstr_debug()
623 assert_eq!(format!("{:?}", others), "\"\\x01\""); in test_bstr_debug()
625 assert_eq!(format!("{:?}", non_ascii), "\"d\\xe9j\\xe0 vu\""); in test_bstr_debug()
627 assert_eq!(format!("{:?}", good_bytes), "\"\\xf0\\x9f\\xa6\\x80\""); in test_bstr_debug()