Skip to content

Commit

Permalink
Update unit tests for interpolation of nni/laplace
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoledoux committed Aug 13, 2024
1 parent 89fa55e commit 51e89f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/interpolate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn existing_point() {
}

#[test]
fn existing_point_highest() {
fn existing_point_lowest() {
let mut pts: Vec<[f64; 3]> = Vec::new();
pts.push([0.0, 0.0, 1.0]);
pts.push([10.0, 0.0, 2.0]);
Expand All @@ -142,6 +142,9 @@ fn existing_point_highest() {

let i_lap = startin::interpolation::Laplace {};
assert_eq!(Ok(11.1), interpolate(&i_lap, &mut dt, &vec![[5.0, 5.0]])[0]);

let i_nni = startin::interpolation::NNI { precompute: false };
assert_eq!(Ok(11.1), interpolate(&i_nni, &mut dt, &vec![[5.0, 5.0]])[0]);
}

#[test]
Expand Down

0 comments on commit 51e89f4

Please sign in to comment.