Skip to content

Commit a9a81cf

Browse files
authored
fix test
1 parent cbdd350 commit a9a81cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/gamma_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ for (T, max, rtol) in ((Float16, 13, 1.0), (Float32, 43, 1.0), (Float64, 170, 7)
22
v = rand(T, 10000)*max
33
for x in v
44
@test isapprox(T(SpecialFunctions.gamma(widen(x))), Bessels.gamma(x), rtol=rtol*eps(T))
5-
if isinteger(x)
5+
if isinteger(x) && x != 0
66
@test_throws DomainError Bessels.gamma(-x)
77
else
88
@test isapprox(T(SpecialFunctions.gamma(widen(-x))), Bessels.gamma(-x), atol=nextfloat(T(0.),2), rtol=rtol*eps(T))

0 commit comments

Comments
 (0)