Enable rand for tests.
This commit is contained in:
parent
c32172b6b9
commit
ff27daf044
|
@ -49,13 +49,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: test
|
- name: test
|
||||||
run: cargo test --features arbitrary --features serde-serialize,abomonation-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests;
|
run: cargo test --features arbitrary,rand,serde-serialize,abomonation-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests;
|
||||||
test-nalgebra-glm:
|
test-nalgebra-glm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: test nalgebra-glm
|
- name: test nalgebra-glm
|
||||||
run: cargo test -p nalgebra-glm --features arbitrary,serde-serialize,abomonation-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests;
|
run: cargo test -p nalgebra-glm --features arbitrary,rand,serde-serialize,abomonation-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests;
|
||||||
test-nalgebra-sparse:
|
test-nalgebra-sparse:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
13
tests/lib.rs
13
tests/lib.rs
|
@ -1,17 +1,20 @@
|
||||||
#[cfg(any(not(feature = "debug"), not(feature = "compare")))]
|
#[cfg(any(
|
||||||
|
not(feature = "debug"),
|
||||||
|
not(feature = "compare"),
|
||||||
|
not(feature = "rand")
|
||||||
|
))]
|
||||||
compile_error!(
|
compile_error!(
|
||||||
"Please enable the `debug` and `compare` features in order to compile and run the tests.
|
"Please enable the `debug`, `compare`, and `rand` features in order to compile and run the tests.
|
||||||
Example: `cargo test --features debug --features compare`"
|
Example: `cargo test --features debug,compare,rand`"
|
||||||
);
|
);
|
||||||
|
|
||||||
#[cfg(feature = "abomonation-serialize")]
|
#[cfg(feature = "abomonation-serialize")]
|
||||||
extern crate abomonation;
|
extern crate abomonation;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate approx;
|
extern crate approx;
|
||||||
#[cfg(feature = "mint")]
|
|
||||||
extern crate mint;
|
|
||||||
extern crate nalgebra as na;
|
extern crate nalgebra as na;
|
||||||
extern crate num_traits as num;
|
extern crate num_traits as num;
|
||||||
|
extern crate rand_package as rand;
|
||||||
|
|
||||||
mod core;
|
mod core;
|
||||||
mod geometry;
|
mod geometry;
|
||||||
|
|
Loading…
Reference in New Issue