Searched refs:assert_eq (Results 1 – 8 of 8) sorted by relevance
/linux/rust/kernel/ |
H A D | str.rs | 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() [all …]
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
H A D | gen-hyprel.c | 192 #define assert_eq(lhs, rhs, fmt) assert_op(lhs, rhs, fmt, ==) macro 283 assert_eq(elf.ehdr->e_ident[EI_MAG0], ELFMAG0, "0x%x"); in init_elf() 284 assert_eq(elf.ehdr->e_ident[EI_MAG1], ELFMAG1, "0x%x"); in init_elf() 285 assert_eq(elf.ehdr->e_ident[EI_MAG2], ELFMAG2, "0x%x"); in init_elf() 286 assert_eq(elf.ehdr->e_ident[EI_MAG3], ELFMAG3, "0x%x"); in init_elf() 289 assert_eq(elf.ehdr->e_ident[EI_CLASS], ELFCLASS64, "%u"); in init_elf() 290 assert_eq(elf.ehdr->e_ident[EI_DATA], ELFENDIAN, "%u"); in init_elf() 291 assert_eq(elf16toh(elf.ehdr->e_type), ET_REL, "%u"); in init_elf() 292 assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u"); in init_elf()
|
/linux/rust/macros/ |
H A D | module.rs | 9 assert_eq!(group.delimiter(), Delimiter::Bracket); in expect_string_array() 17 Some(TokenTree::Punct(punct)) => assert_eq!(punct.as_char(), ','), in expect_string_array() 133 assert_eq!(expect_punct(it), ':'); in parse() 149 assert_eq!(expect_punct(it), ','); in parse()
|
H A D | concat_idents.rs | 18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
|
H A D | zeroable.rs | 60 assert_eq!(nested, 0); in derive()
|
/linux/Documentation/rust/ |
H A D | testing.rst | 57 /// assert_eq!(mymod::f(10, 20), 30); 114 Rust tests appear to assert using the usual ``assert!`` and ``assert_eq!``
|
H A D | coding-guidelines.rst | 134 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
|
/linux/Documentation/translations/zh_CN/rust/ |
H A D | coding-guidelines.rst | 121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
|