]> gitweb.factorcode.org Git - factor.git/commitdiff
math.cardinality: fix flaky test
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 22 Jan 2023 01:05:01 +0000 (19:05 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 22 Jan 2023 01:05:01 +0000 (19:05 -0600)
https://github.com/factor/factor/issues/2746

extra/math/cardinality/cardinality-tests.factor

index ef731b5cec912ed4c5fcd6e00be4a655b1ed757b..cc019983e85f2ae18f33eec769cfa73922f97030 100644 (file)
@@ -7,8 +7,9 @@ ${ fixnum-bits } [ 0 trailing-zeros ] unit-test
 { 2 } [ 0b100 trailing-zeros ] unit-test
 { 3 } [ 0b1000 trailing-zeros ] unit-test
 
+! flaky test at .15, https://github.com/factor/factor/issues/2746
 { t } [
     10 [
         10,000 [ random-units 10 estimate-cardinality ] [ / ] bi
-    ] replicate [ 1.0 0.15 ~ ] all? ! should be 4%?
+    ] replicate [ 1.0 0.2 ~ ] all? ! should be 4%?
 ] unit-test