Explorar el Código

* decrease failure rate

florian hace 1 año
padre
commit
a6fe41f3f6
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      tests/test/units/system/trandom.pp

+ 3 - 3
tests/test/units/system/trandom.pp

@@ -2,7 +2,7 @@ program test_random;
 
 
 const
 const
   buckets = 1000000;
   buckets = 1000000;
-  repeats = 20;
+  repeats = 50;
 var
 var
   hist : array[1..buckets] of LongInt;
   hist : array[1..buckets] of LongInt;
   i : longint;
   i : longint;
@@ -31,8 +31,8 @@ begin
     chisquare:=chisquare+sqr(hist[i]-repeats)/repeats;
     chisquare:=chisquare+sqr(hist[i]-repeats)/repeats;
   writeln(chisquare);
   writeln(chisquare);
 
 
-  { m=1000000; p=0.1 }
-  if chisquare>1001741 then
+  { m=1000000; p=0.000001 }
+  if chisquare>1006671 then
     halt(1)
     halt(1)
   else
   else
     writeln('ok');
     writeln('ok');