From 0495e6d73d06ec4eb2cffd18c03c2c43434283b2 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Thu, 22 Apr 2021 00:21:53 +0200 Subject: [PATCH] Lower tolerances in the tests --- test/fit.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/fit.jl b/test/fit.jl index 54be85887..4cf299c6a 100644 --- a/test/fit.jl +++ b/test/fit.jl @@ -355,10 +355,10 @@ end @testset "Testing fit for Laplace" begin for func in funcs, dist in (Laplace, Laplace{Float64}) - d = fit(dist, func[2](dist(5.0, 3.0), N)) + d = fit(dist, func[2](dist(5.0, 3.0), N + 1)) @test isa(d, dist) - @test isapprox(location(d), 5.0, atol=0.1) - @test isapprox(scale(d) , 3.0, atol=0.2) + @test isapprox(location(d), 5.0, atol=0.02) + @test isapprox(scale(d) , 3.0, atol=0.02) end end