diff --git a/src/geometry/quaternion_construction.rs b/src/geometry/quaternion_construction.rs index 89911b91..50807907 100644 --- a/src/geometry/quaternion_construction.rs +++ b/src/geometry/quaternion_construction.rs @@ -891,6 +891,7 @@ where } #[cfg(test)] +#[cfg(feature = "rand")] mod tests { extern crate rand_xorshift; use super::*; diff --git a/src/linalg/symmetric_eigen.rs b/src/linalg/symmetric_eigen.rs index 64d3515a..d30c2f80 100644 --- a/src/linalg/symmetric_eigen.rs +++ b/src/linalg/symmetric_eigen.rs @@ -337,6 +337,7 @@ mod test { } } + #[cfg(feature = "rand")] #[test] fn wilkinson_shift_random() { for _ in 0..1000 {