Skip to content

Commit 3f424d3

Browse files
committed
improve tests
1 parent a5fe900 commit 3f424d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/basicfuns.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ function _log1pmx_ker(x::T) where T <: Union{Float32, Float64}
352352
0.1337701340211177,
353353
0.11201972567415432,
354354
0.143418239946679)
355+
end
355356
w = evalpoly(t, p)
356357
hxsq = x*x/2
357358
muladd(r, muladd(w, t, hxsq), -hxsq)

test/basicfuns.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ end
216216
@test log1pmx(2f0) log(3f0) - 2f0
217217

218218
for x in -0.5:0.1:10
219-
@test log1pmx(Float32(x)) Float32(log1pmx(x))
219+
@test log1pmx(Float32(x)) Float32(log1pmx(x)) atol=3*eps(Float32(x))
220+
@test log1pmx(x) Float64(log1pmx(big(x))) atol=3*eps(x)
220221
end
221222
end
222223

0 commit comments

Comments
 (0)