Skip to content

Commit

Permalink
Lower tolerances in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Apr 21, 2021
1 parent 857debf commit 0495e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/fit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0495e6d

Please sign in to comment.