random test sometimes randomly fails
Some checks failed
Rust / build (pull_request) Failing after 1m4s
Some checks failed
Rust / build (pull_request) Failing after 1m4s
This commit is contained in:
parent
487dd03713
commit
3133dcceeb
|
@ -106,10 +106,15 @@ mod tests {
|
|||
#[cfg(feature = "rand")]
|
||||
fn test() {
|
||||
let mut rng = rand::rng();
|
||||
// two so test failure is less likely
|
||||
// more so random failure is less likely
|
||||
assert_ne!(
|
||||
[rng.random::<Brightness>(), rng.random()],
|
||||
[rng.random(), rng.random()]
|
||||
[
|
||||
rng.random::<Brightness>(),
|
||||
rng.random(),
|
||||
rng.random(),
|
||||
rng.random()
|
||||
],
|
||||
[rng.random(), rng.random(), rng.random(), rng.random()]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue