Skip to content

Commit 2942829

Browse files
authored
fix tests
1 parent 1962b8d commit 2942829

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
@@ -5,7 +5,7 @@ for (T, max) in ((Float16, 13), (Float32, 43), (Float64, 170))
55
if isinteger(x)
66
@test_throws DomainError Bessels.gamma(-x)
77
else
8-
@test T(SpecialFunctions.gamma(widen(-x))) Bessels.gamma(-x)
8+
@test isapprox(T(SpecialFunctions.gamma(widen(-x))), Bessels.gamma(-x), atol=nextfloat(Float16(0.),2))
99
end
1010
end
1111
@test isnan(Bessels.gamma(T(NaN)))

0 commit comments

Comments
 (0)