From 7227d02a9c1ef296613f7b55868c76531fa8d62b Mon Sep 17 00:00:00 2001 From: lovasoa Date: Wed, 20 Apr 2022 20:53:08 +0200 Subject: [PATCH] Add a comment for the random() != random() test --- tests/rand.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/rand.rs b/tests/rand.rs index cec07c5..4f4914b 100644 --- a/tests/rand.rs +++ b/tests/rand.rs @@ -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");