Skip to content

Commit 179f75d

Browse files
committed
TEST: add CI for examples and remove leftover sort_axis_ method in example
1 parent 1e5a28e commit 179f75d

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

examples/sort-axis.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ pub trait SortArray {
4646
fn sort_axis_by<F>(&self, axis: Axis, less_than: F) -> Permutation
4747
where
4848
F: FnMut(usize, usize) -> bool;
49-
fn sort_axis_<F>(&self, axis: Axis, less_than: F) -> Permutation
50-
where
51-
F: FnMut(usize, usize) -> Ordering;
5249
}
5350

5451
pub trait PermuteArray {
@@ -87,15 +84,6 @@ where
8784
});
8885
perm
8986
}
90-
91-
fn sort_axis_<F>(&self, axis: Axis, mut less_than: F) -> Permutation
92-
where
93-
F: FnMut(usize, usize) -> Ordering,
94-
{
95-
let mut perm = self.identity(axis);
96-
perm.indices.sort_by(move |&a, &b| less_than(a, b));
97-
perm
98-
}
9987
}
10088

10189
impl<A, D> PermuteArray for Array<A, D>

scripts/all-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ cargo test --manifest-path=ndarray-rand/Cargo.toml --no-default-features --verbo
1616
cargo test --manifest-path=ndarray-rand/Cargo.toml --features quickcheck --verbose
1717
cargo test --manifest-path=serialization-tests/Cargo.toml --verbose
1818
cargo test --manifest-path=blas-tests/Cargo.toml --verbose
19+
cargo test --examples
1920
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose
2021
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")

0 commit comments

Comments
 (0)