Searched refs:assert_eq (Results 1 – 13 of 13) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | str.rs | 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() 661 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS); in test_cstr_display_all_bytes() 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() [all …]
|
| H A D | kunit.rs | 327 assert_eq!(1 + 1, 2); in rust_test_kunit_example_test()
|
| /linux-6.15/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-6.15/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() 132 assert_eq!(expect_punct(it), ':'); in parse() 146 assert_eq!(expect_punct(it), ','); in parse()
|
| H A D | concat_idents.rs | 18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
|
| /linux-6.15/samples/rust/ |
| H A D | rust_dma.rs | 83 assert_eq!(kernel::dma_read!(self.ca[i].h), value.0); in drop() 84 assert_eq!(kernel::dma_read!(self.ca[i].b), value.1); in drop()
|
| /linux-6.15/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | 63 assert_eq!(nested, 0); in derive()
|
| /linux-6.15/rust/pin-init/examples/ |
| H A D | static_init.rs | 121 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | pthread_mutex.rs | 176 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | mutex.rs | 208 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| /linux-6.15/Documentation/translations/zh_CN/rust/ |
| H A D | coding-guidelines.rst | 121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
|
| /linux-6.15/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");
|