Add a comment for the random() != random() test
This commit is contained in:
parent
687f762115
commit
7227d02a9c
@ -9,6 +9,7 @@ fn assert_expr(expr: &str) {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_random() {
|
fn test_random() {
|
||||||
for _ in 0..100 {
|
for _ in 0..100 {
|
||||||
|
// This has a probability of 1e-20 of failing
|
||||||
assert_expr("random() != random()");
|
assert_expr("random() != random()");
|
||||||
assert_expr("0 <= random()");
|
assert_expr("0 <= random()");
|
||||||
assert_expr("random() <= 1");
|
assert_expr("random() <= 1");
|
||||||
|
Loading…
Reference in New Issue
Block a user