Add a comment for the random() != random() test

This commit is contained in:
lovasoa 2022-04-20 20:53:08 +02:00
parent 687f762115
commit 7227d02a9c
No known key found for this signature in database
GPG Key ID: AC8DB8E033B44AB8

View File

@ -9,6 +9,7 @@ fn assert_expr(expr: &str) {
#[test]
fn test_random() {
for _ in 0..100 {
// This has a probability of 1e-20 of failing
assert_expr("random() != random()");
assert_expr("0 <= random()");
assert_expr("random() <= 1");