Lines Matching refs:assert_eq
437 assert_eq!(checked_str, ""); in test_cstr_to_str()
451 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_cstr_display()
453 assert_eq!(format!("{non_printables}"), "\\x01\\x09\\x0a"); in test_cstr_display()
455 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_cstr_display()
457 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display()
469 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS); in test_cstr_display_all_bytes()
476 assert_eq!(format!("{hello_world:?}"), "\"hello, world!\""); in test_cstr_debug()
478 assert_eq!(format!("{non_printables:?}"), "\"\\x01\\t\\n\""); in test_cstr_debug()
480 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\""); in test_cstr_debug()
487 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_bstr_display()
489 assert_eq!(format!("{escapes}"), "_\\t_\\n_\\r_\\_'_\"_"); in test_bstr_display()
491 assert_eq!(format!("{others}"), "\\x01"); in test_bstr_display()
493 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_bstr_display()
495 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_bstr_display()
502 assert_eq!(format!("{hello_world:?}"), "\"hello, world!\""); in test_bstr_debug()
504 assert_eq!(format!("{escapes:?}"), "\"_\\t_\\n_\\r_\\\\_'_\\\"_\""); in test_bstr_debug()
506 assert_eq!(format!("{others:?}"), "\"\\x01\""); in test_bstr_debug()
508 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\""); in test_bstr_debug()
510 assert_eq!(format!("{good_bytes:?}"), "\"\\xf0\\x9f\\xa6\\x80\""); in test_bstr_debug()