remove stuck test
authoralfadur
Wed, 20 May 2020 23:08:08 +0300
changeset 15579 db710cd8df69
parent 15578 0b6094660557
child 15580 98482c4ccf4b
remove stuck test
rust/hedgewars-server/src/handlers/common.rs
--- 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;
-            }
-        }
-    }
 }