diff --git a/contents/approximate_counting/code/julia/approximate_counting.jl b/contents/approximate_counting/code/julia/approximate_counting.jl index 9a10eae59..5e1fa86c3 100644 --- a/contents/approximate_counting/code/julia/approximate_counting.jl +++ b/contents/approximate_counting/code/julia/approximate_counting.jl @@ -52,10 +52,10 @@ end @testset "Counting Tests, 100 trials" begin println("testing 1,000, a = 30, 1% error") - test_approximate_count(0.1, 100, 1000, 30) + test_approximate_count(100, 1000, 30, 0.1) println("testing 12,345, a = 10, 1% error") - test_approximate_count(0.1, 100, 12345, 10) + test_approximate_count(100, 12345, 10, 0.1) # Note: with a lower a, we need more trials, so a higher % error here. println("testing 222,222, a = 0.5, 10% error") - test_approximate_count(0.1, 100, 222222, 0.5) + test_approximate_count(100, 222222, 0.5, 0.2) end