Skip to content

Commit 682556e

Browse files
committed
Fix: intersect_u16 test in Rust
1 parent 56a01ef commit 682556e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ mod tests {
15831583
fn intersect_u16() {
15841584
{
15851585
let a_u16: &[u16] = &[153, 16384, 17408];
1586-
let b_u16: &[u16] = &[15360, 16384, 7408];
1586+
let b_u16: &[u16] = &[7408, 15360, 16384];
15871587

15881588
if let Some(result) = Sparse::intersect(a_u16, b_u16) {
15891589
println!("The result of intersect_u16 is {:.8}", result);
@@ -1592,8 +1592,8 @@ mod tests {
15921592
}
15931593

15941594
{
1595-
let a_u16: &[u16] = &[153, 11638, 08];
1596-
let b_u16: &[u16] = &[15360, 16384, 7408];
1595+
let a_u16: &[u16] = &[8, 153, 11638];
1596+
let b_u16: &[u16] = &[7408, 15360, 16384];
15971597

15981598
if let Some(result) = Sparse::intersect(a_u16, b_u16) {
15991599
println!("The result of intersect_u16 is {:.8}", result);

0 commit comments

Comments
 (0)