Disable some tests if "rand" feature is disabled
This avoids some misleading errors for `cargo test`.
This commit is contained in:
parent
df33dec457
commit
260ee54288
|
@ -891,6 +891,7 @@ where
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(feature = "rand")]
|
||||
mod tests {
|
||||
extern crate rand_xorshift;
|
||||
use super::*;
|
||||
|
|
|
@ -337,6 +337,7 @@ mod test {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "rand")]
|
||||
#[test]
|
||||
fn wilkinson_shift_random() {
|
||||
for _ in 0..1000 {
|
||||
|
|
Loading…
Reference in New Issue