Fix formatting
This commit is contained in:
parent
4dbd8387f9
commit
d6650678de
1 changed files with 8 additions and 2 deletions
|
|
@ -116,8 +116,14 @@ fn memset_nonzero() {
|
|||
|
||||
#[test]
|
||||
fn memcmp_eq() {
|
||||
let arr1: [u8; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
|
||||
let arr2: [u8; 32] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31];
|
||||
let arr1: [u8; 32] = [
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
||||
25, 26, 27, 28, 29, 30, 31,
|
||||
];
|
||||
let arr2: [u8; 32] = [
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
||||
25, 26, 27, 28, 29, 30, 31,
|
||||
];
|
||||
for i in 0..32 {
|
||||
unsafe {
|
||||
assert_eq!(memcmp(arr1.as_ptr(), arr2.as_ptr(), i), 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue