forked from M-Labs/nalgebra
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(test)]
|
||||||
|
#[cfg(feature = "rand")]
|
||||||
mod tests {
|
mod tests {
|
||||||
extern crate rand_xorshift;
|
extern crate rand_xorshift;
|
||||||
use super::*;
|
use super::*;
|
||||||
|
@ -337,6 +337,7 @@ mod test {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "rand")]
|
||||||
#[test]
|
#[test]
|
||||||
fn wilkinson_shift_random() {
|
fn wilkinson_shift_random() {
|
||||||
for _ in 0..1000 {
|
for _ in 0..1000 {
|
||||||
|
Loading…
Reference in New Issue
Block a user