| /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 | 453 assert_eq!(checked_str, ""); in test_cstr_to_str() 467 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_cstr_display() 469 assert_eq!(format!("{non_printables}"), "\\x01\\x09\\x0a"); in test_cstr_display() 471 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_cstr_display() 473 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display() 485 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS); in test_cstr_display_all_bytes() 492 assert_eq!(format!("{hello_world:?}"), "\"hello, world!\""); in test_cstr_debug() 494 assert_eq!(format!("{non_printables:?}"), "\"\\x01\\t\\n\""); in test_cstr_debug() 496 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\""); in test_cstr_debug() 503 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_bstr_display() [all …]
|
| H A D | kunit.rs | 338 assert_eq!(1 + 1, 2); in rust_test_kunit_example_test()
|
| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 179 assert_eq!(v, x.load(Relaxed)); in atomic_arithmetic_tests() 187 assert_eq!(v, unsafe { atomic_load(ptr, Relaxed) }); 197 assert_eq!(v, x.load(Acquire)); 208 assert_eq!(v, unsafe { atomic_load(ptr, Acquire) }); 220 assert_eq!(old, x.xchg(new, Full)); 221 assert_eq!(new, x.load(Relaxed)); 232 assert_eq!(old, unsafe { xchg(ptr, new, Full) }); 233 assert_eq!(new, x.load(Relaxed)); 245 assert_eq!(Err(old), x.cmpxchg(new, new, Full)); 246 assert_eq!(ol [all...] |
| /linux/rust/macros/ |
| H A D | module.rs | |
| H A D | helpers.rs | |
| H A D | concat_idents.rs | |
| 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/rust/kernel/alloc/ |
| H A D | kvec.rs | 1488 assert_eq!(vec1, vec2); in test_kvec_retain() 1537 assert_eq!(v.len(), 3); in test_kvvec_shrink_to() 1538 assert_eq!(v[0], 1); in test_kvvec_shrink_to() 1539 assert_eq!(v[1], 2); in test_kvvec_shrink_to() 1540 assert_eq!(v[2], 3); in test_kvvec_shrink_to() 1549 assert_eq!(v.len(), 3); in test_kvvec_shrink_to() 1550 assert_eq!(v[0], 1); in test_kvvec_shrink_to() 1551 assert_eq!(v[1], 2); in test_kvvec_shrink_to() 1552 assert_eq!(v[2], 3); in test_kvvec_shrink_to() 1568 assert_eq!(v.capacity(), 0); in test_kvvec_shrink_to_empty() [all …]
|
| /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);
|
| /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 | 99 assert_eq!(val0, value.0); in check_dma() 100 assert_eq!(val1, value.1); in check_dma()
|
| /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 | |
| /linux/rust/pin-init/examples/ |
| H A D | static_init.rs | 123 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | pthread_mutex.rs | 183 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|
| H A D | mutex.rs | 224 assert_eq!(*mtx.lock(), workload * thread_count * 2); in main()
|