Some faults only appear on some replies. Suppose a build of RefundBot gives the wrong return window on 40% of replies and the right one on the other 60%. A test that asks once will pass whenever it happens to get a good reply.
Your task
- Work out the chance that a test asking once misses this fault, then the chance when it asks 3 times and 10 times. Each reply is independent, and the test fails if any reply is wrong.
- Find the smallest number of asks that brings the chance of missing it below 1 in 1,000.
- Set
REPEATSin the test to that number or more, and submit. Your test runs against a correct bot and against the faulty build several times, with different random seeds.
Give probabilities as decimals, for example 0.25 rather than 25%. Three decimal places are enough.