From 179f75d188aa62d6fdcf917411a4fc7ceec953c7 Mon Sep 17 00:00:00 2001 From: Dave McDaniel Date: Wed, 10 Feb 2021 10:08:03 -0500 Subject: [PATCH] TEST: add CI for examples and remove leftover `sort_axis_` method in example --- examples/sort-axis.rs | 12 ------------ scripts/all-tests.sh | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/examples/sort-axis.rs b/examples/sort-axis.rs index 37628226c..9956bf7d1 100644 --- a/examples/sort-axis.rs +++ b/examples/sort-axis.rs @@ -46,9 +46,6 @@ pub trait SortArray { fn sort_axis_by(&self, axis: Axis, less_than: F) -> Permutation where F: FnMut(usize, usize) -> bool; - fn sort_axis_(&self, axis: Axis, less_than: F) -> Permutation - where - F: FnMut(usize, usize) -> Ordering; } pub trait PermuteArray { @@ -87,15 +84,6 @@ where }); perm } - - fn sort_axis_(&self, axis: Axis, mut less_than: F) -> Permutation - where - F: FnMut(usize, usize) -> Ordering, - { - let mut perm = self.identity(axis); - perm.indices.sort_by(move |&a, &b| less_than(a, b)); - perm - } } impl PermuteArray for Array diff --git a/scripts/all-tests.sh b/scripts/all-tests.sh index 22f1d1f94..61dfc56dc 100755 --- a/scripts/all-tests.sh +++ b/scripts/all-tests.sh @@ -16,5 +16,6 @@ cargo test --manifest-path=ndarray-rand/Cargo.toml --no-default-features --verbo cargo test --manifest-path=ndarray-rand/Cargo.toml --features quickcheck --verbose cargo test --manifest-path=serialization-tests/Cargo.toml --verbose cargo test --manifest-path=blas-tests/Cargo.toml --verbose +cargo test --examples CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose ([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")