Skip to content

Commit

Permalink
used sqrtf in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lylebuist committed Nov 12, 2024
1 parent b4f8dc1 commit 17f197c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/localisation/src/preprocessing/optical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod tests {
Vec::from_slice(&[3.0, 4.0]).unwrap(),
])
.unwrap();
let desired_outcome: Vec<f32, 2> = Vec::from_slice(&[1.4142135, 5.0]).unwrap();
let desired_outcome: Vec<f32, 2> = Vec::from_slice(&[sqrtf(2.0), 5.0]).unwrap();
let result = process_data(raw_optical_data);
assert_eq!(result, desired_outcome);
}
Expand Down

0 comments on commit 17f197c

Please sign in to comment.