Skip to content

Commit 9b7a834

Browse files
committed
chore: test sum_two_ints32
1 parent efa5c56 commit 9b7a834

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_arrays.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use rem_math::native::sum_arr_int32;
2+
use rem_math::native::sum_two_ints32;
23
use rem_math::native::sum_two_floats32;
34

45
#[test]
@@ -15,4 +16,13 @@ fn test_sum_two_floats32() {
1516

1617
assert_eq!(expected_arr, sum_two_floats32(arr.clone(), arr.clone(), false));
1718
assert_eq!(expected_arr, sum_two_floats32(arr.clone(), arr.clone(), true));
19+
}
20+
21+
#[test]
22+
fn test_sum_two_ints32() {
23+
let arr = vec![1; 5];
24+
let expected_arr = vec![2, 2, 2, 2, 2];
25+
26+
assert_eq!(expected_arr, sum_two_ints32(arr.clone(), arr.clone(), false));
27+
assert_eq!(expected_arr, sum_two_ints32(arr.clone(), arr.clone(), true));
1828
}

0 commit comments

Comments
 (0)