Skip to content

Commit

Permalink
Merge pull request #9 from milankl/mk/randfloat
Browse files Browse the repository at this point in the history
increase tolerance for test
  • Loading branch information
milankl authored Jan 28, 2021
2 parents 18d8078 + 9f5cd19 commit c207a16
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 c207a16

Please sign in to comment.