Disable some tests if "rand" feature is disabled

This avoids some misleading errors for `cargo test`.
This commit is contained in:
Vinzent Steinberg 2021-04-10 01:00:12 -03:00
parent df33dec457
commit 260ee54288
2 changed files with 2 additions and 0 deletions

View File

@ -891,6 +891,7 @@ where
}
#[cfg(test)]
#[cfg(feature = "rand")]
mod tests {
extern crate rand_xorshift;
use super::*;

View File

@ -337,6 +337,7 @@ mod test {
}
}
#[cfg(feature = "rand")]
#[test]
fn wilkinson_shift_random() {
for _ in 0..1000 {