Skip to content

Commit

Permalink
increase tolerance for test
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Jan 28, 2021
1 parent ce651d2 commit 9f5cd19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/randfloat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ end

# test that the most frequent exponents occur at 50%, 25%, 12.5% etc.
for i in 1:10
@test isapprox(H[i]/N,2.0^-i,atol=1e-4)
@test isapprox(H[i]/N,2.0^-i,atol=5e-4)
end

# FLOAT32
Expand All @@ -82,6 +82,6 @@ end

# test that the most frequent exponents occur at 50%, 25%, 12.5% etc.
for i in 1:10
@test isapprox(H[i]/N,2.0^-i,atol=1e-4)
@test isapprox(H[i]/N,2.0^-i,atol=5e-4)
end
end

0 comments on commit 9f5cd19

Please sign in to comment.