From ff27daf0447c72cfdb7747feac415094d6d1e6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crozet=20S=C3=A9bastien?= Date: Tue, 2 Mar 2021 12:37:00 +0100 Subject: [PATCH] Enable rand for tests. --- .github/workflows/nalgebra-ci-build.yml | 4 ++-- tests/lib.rs | 13 ++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/nalgebra-ci-build.yml b/.github/workflows/nalgebra-ci-build.yml index 3518bf74..83a56435 100644 --- a/.github/workflows/nalgebra-ci-build.yml +++ b/.github/workflows/nalgebra-ci-build.yml @@ -49,13 +49,13 @@ jobs: steps: - uses: actions/checkout@v2 - 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: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - 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: runs-on: ubuntu-latest steps: diff --git a/tests/lib.rs b/tests/lib.rs index ca7faa74..add7a468 100644 --- a/tests/lib.rs +++ b/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!( - "Please enable the `debug` and `compare` features in order to compile and run the tests. - Example: `cargo test --features debug --features compare`" + "Please enable the `debug`, `compare`, and `rand` features in order to compile and run the tests. + Example: `cargo test --features debug,compare,rand`" ); #[cfg(feature = "abomonation-serialize")] extern crate abomonation; #[macro_use] extern crate approx; -#[cfg(feature = "mint")] -extern crate mint; extern crate nalgebra as na; extern crate num_traits as num; +extern crate rand_package as rand; mod core; mod geometry;