Skip to content

Commit 744a427

Browse files
Fixed test cases.
1 parent c786eac commit 744a427

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/array.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extern crate itertools;
88

99
use ndarray::{Slice, SliceInfo, SliceOrIndex};
1010
use ndarray::prelude::*;
11-
use ndarray::numeric::{Lower, Nearest, Upper};
11+
use ndarray::numeric::{Lower};
1212
use ndarray::{
1313
rcarr2,
1414
arr3,
@@ -1759,7 +1759,7 @@ fn test_percentile_axis_mut_with_odd_axis_length() {
17591759
[3, 5, 6, 12]
17601760
]
17611761
);
1762-
let p = a.percentile_axis_mut(Axis(0), 0.5, InterpolationStrategy::Lower);
1762+
let p = a.percentile_axis_mut::<Lower>(Axis(0), 0.5);
17631763
assert!(p == a.subview(Axis(0), 1));
17641764
}
17651765

@@ -1773,20 +1773,20 @@ fn test_percentile_axis_mut_with_even_axis_length() {
17731773
[4, 6, 7, 13]
17741774
]
17751775
);
1776-
let q = b.percentile_axis_mut(Axis(0), 0.5, InterpolationStrategy::Lower);
1776+
let q = b.percentile_axis_mut::<Lower>(Axis(0), 0.5);
17771777
assert!(q == b.subview(Axis(0), 1));
17781778
}
17791779

17801780
#[test]
17811781
fn test_percentile_axis_mut_to_get_minimum() {
17821782
let mut b = arr2(&[[1, 3, 22, 10]]);
1783-
let q = b.percentile_axis_mut(Axis(1), 0., InterpolationStrategy::Lower);
1783+
let q = b.percentile_axis_mut::<Lower>(Axis(1), 0.);
17841784
assert!(q == arr1(&[1]));
17851785
}
17861786

17871787
#[test]
17881788
fn test_percentile_axis_mut_to_get_maximum() {
17891789
let mut b = arr1(&[1, 3, 22, 10]);
1790-
let q = b.percentile_axis_mut(Axis(0), 1., InterpolationStrategy::Lower);
1790+
let q = b.percentile_axis_mut::<Lower>(Axis(0), 1.);
17911791
assert!(q == arr0(22));
17921792
}

0 commit comments

Comments
 (0)