Home
last modified time | relevance | path

Searched refs:assert_eq (Results 1 – 13 of 13) sorted by relevance

/linux-6.15/rust/kernel/
H A Dstr.rs621 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 Dkunit.rs327 assert_eq!(1 + 1, 2); in rust_test_kunit_example_test()
/linux-6.15/arch/arm64/kvm/hyp/nvhe/
H A Dgen-hyprel.c192 #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 Dmodule.rs9 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 Dconcat_idents.rs18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
/linux-6.15/samples/rust/
H A Drust_dma.rs83 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 Dzeroable.rs63 assert_eq!(nested, 0); in derive()
/linux-6.15/rust/pin-init/examples/
H A Dstatic_init.rs121 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
H A Dpthread_mutex.rs176 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
H A Dmutex.rs208 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
/linux-6.15/Documentation/translations/zh_CN/rust/
H A Dcoding-guidelines.rst121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
/linux-6.15/Documentation/rust/
H A Dtesting.rst57 /// assert_eq!(mymod::f(10, 20), 30);
114 Rust tests appear to assert using the usual ``assert!`` and ``assert_eq!``
H A Dcoding-guidelines.rst134 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");