Skip to content

Commit

Permalink
TEST: add CI for examples and remove leftover sort_axis_ method in …
Browse files Browse the repository at this point in the history
…example
  • Loading branch information
dam5h committed Feb 10, 2021
1 parent 1e5a28e commit 179f75d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 0 additions & 12 deletions examples/sort-axis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ pub trait SortArray {
fn sort_axis_by<F>(&self, axis: Axis, less_than: F) -> Permutation
where
F: FnMut(usize, usize) -> bool;
fn sort_axis_<F>(&self, axis: Axis, less_than: F) -> Permutation
where
F: FnMut(usize, usize) -> Ordering;
}

pub trait PermuteArray {
Expand Down Expand Up @@ -87,15 +84,6 @@ where
});
perm
}

fn sort_axis_<F>(&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<A, D> PermuteArray for Array<A, D>
Expand Down
1 change: 1 addition & 0 deletions scripts/all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 179f75d

Please sign in to comment.