| /linux/rust/kernel/ |
| H A D | bitmap.rs | 515 assert_eq!(fake_bitmap_len, b.len()); in bitmap_borrow() 516 assert_eq!(None, b.next_bit(0)); in bitmap_borrow() 524 assert_eq!(8, b.len()); in bitmap_copy() 525 assert_eq!(None, b.next_zero_bit(0)); in bitmap_copy() 531 assert_eq!(0, b.len()); in bitmap_vec_new() 534 assert_eq!(3, b.len()); in bitmap_vec_new() 537 assert_eq!(1024, b.len()); in bitmap_vec_new() 550 assert_eq!(None, b.next_bit(0)); in bitmap_set_clear_find() 551 assert_eq!(Some(0), b.next_zero_bit(0)); in bitmap_set_clear_find() 552 assert_eq!(None, b.last_bit()); in bitmap_set_clear_find() [all …]
|
| H A D | str.rs | 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() [all …]
|
| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 124 assert_eq!(v, x.load(Relaxed)); in atomic_basic_tests() 136 assert_eq!(old, x.xchg(new, Full)); in atomic_xchg_tests() 137 assert_eq!(new, x.load(Relaxed)); in atomic_xchg_tests() 149 assert_eq!(Err(old), x.cmpxchg(new, new, Full)); in atomic_cmpxchg_tests() 150 assert_eq!(old, x.load(Relaxed)); in atomic_cmpxchg_tests() 151 assert_eq!(Ok(old), x.cmpxchg(old, new, Relaxed)); in atomic_cmpxchg_tests() 152 assert_eq!(new, x.load(Relaxed)); in atomic_cmpxchg_tests() 161 assert_eq!(v, x.fetch_add(12, Full)); in atomic_arithmetic_tests() 162 assert_eq!(v + 12, x.load(Relaxed)); in atomic_arithmetic_tests() 166 assert_eq!(v + 25, x.load(Relaxed)); in atomic_arithmetic_tests()
|
| /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() 189 assert_eq!(expect_ident(param_it), "default"); in expect_param_default() 190 assert_eq!(expect_punct(param_it), ':'); in expect_param_default() 193 assert_eq!(expect_punct(param_it), ','); in expect_param_default() 222 assert_eq!(params.delimiter(), Delimiter::Brace); in expect_params() 233 assert_eq!(expect_punct(&mut it), ':'); in expect_params() 236 assert_eq!(group.delimiter(), Delimiter::Brace); in expect_params() 237 assert_eq!(expect_punct(&mut it), ','); in expect_params() 284 assert_eq!(expect_punct(it), ':'); in parse() [all …]
|
| H A D | helpers.rs | 125 assert_eq!(expect_ident(it), expected_name); in expect_string_field() 126 assert_eq!(expect_punct(it), ':'); in expect_string_field() 128 assert_eq!(expect_punct(it), ','); in expect_string_field()
|
| H A D | concat_idents.rs | 18 assert_eq!(expect_punct(&mut it), ','); in concat_idents()
|
| H A D | zeroable.rs | |
| /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/Documentation/translations/zh_CN/rust/ |
| H A D | testing.rst | 56 /// assert_eq!(mymod::f(10, 20), 30); 108 Rust 测试中常用的断言宏是来自 Rust 标准库( ``core`` )中的 ``assert!`` 和 ``assert_eq!`` 宏。 141 assert_eq!(f(10, 20), 30); 155 与文档测试类似, ``assert!`` 和 ``assert_eq!`` 宏被映射回 KUnit 并且不会发生 panic。 168 assert_eq!(x, 30);
|
| H A D | coding-guidelines.rst | 121 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
|
| /linux/rust/syn/ |
| H A D | lit.rs | 1287 assert_eq!(byte(s, 0), b'"'); in parse_lit_str_cooked() 1330 assert_eq!(byte(s, 1), b'\n', "bare CR not allowed in string"); in parse_lit_str_cooked() 1350 assert_eq!(byte(s, 0), b'r'); in parse_lit_str_raw() 1357 assert_eq!(byte(s, pounds), b'"'); in parse_lit_str_raw() 1360 assert_eq!(end, b'#'); in parse_lit_str_raw() 1370 assert_eq!(byte(s, 0), b'b'); in parse_lit_byte_str() 1379 assert_eq!(byte(s, 0), b'b'); in parse_lit_byte_str_cooked() 1380 assert_eq!(byte(s, 1), b'"'); in parse_lit_byte_str_cooked() 1421 assert_eq!(byte(v, 1), b'\n', "bare CR not allowed in string"); in parse_lit_byte_str_cooked() 1433 assert_eq!(byte(v, 0), b'"'); in parse_lit_byte_str_cooked() [all …]
|
| H A D | token.rs | 1014 assert_eq!(token.len(), spans.len()); in punct_helper() 1067 assert_eq!(s.len(), spans.len()); in punct()
|
| /linux/samples/rust/ |
| H A D | rust_dma.rs | 102 assert_eq!(val0, value.0); in drop() 105 assert_eq!(val1, value.1); in drop()
|
| /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!`` 154 assert_eq!(f(10, 20), 30); 168 Like documentation tests, the ``assert!`` and ``assert_eq!`` macros are mapped 183 assert_eq!(x, 30);
|
| H A D | coding-guidelines.rst | 221 /// assert_eq!(unsafe { x.unwrap_unchecked() }, "air");
|
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | 70 assert_eq!(nested, 0); in parse_zeroable_derive_input()
|
| /linux/rust/pin-init/examples/ |
| H A D | static_init.rs | 122 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | pthread_mutex.rs | 182 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | mutex.rs | 223 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 1376 assert_eq!(vec1, vec2); in test_kvec_retain()
|