rust/hedgewars-server/src/handlers/common.rs
changeset 15601 db710cd8df69
parent 15591 4b2f3228f13b
child 15719 25371cae9fd7
--- a/rust/hedgewars-server/src/handlers/common.rs	Wed May 20 22:50:58 2020 +0300
+++ b/rust/hedgewars-server/src/handlers/common.rs	Wed May 20 23:08:08 2020 +0300
@@ -668,21 +668,4 @@
     fn test_handle_rnd_nonempty() {
         run_handle_test(vec!["A".to_owned(), "B".to_owned(), "C".to_owned()])
     }
-
-    /// This test terminates almost surely (strong law of large numbers)
-    #[test]
-    fn test_distribution() {
-        let eps = 0.000001;
-        let lim = 0.5;
-        let opts = vec![0.to_string(), 1.to_string()];
-        let mut ones = 0;
-        let mut tries = 0;
-
-        while tries < 1000 || ((ones as f64 / tries as f64) - lim).abs() >= eps {
-            tries += 1;
-            if reply2string(rnd_reply(&opts)) == 1.to_string() {
-                ones += 1;
-            }
-        }
-    }
 }