Skip to content

Commit ee9feb4

Browse files
committed
add inf tests
1 parent 9c51aa5 commit ee9feb4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/besseli_test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ for v in nu, xx in x
102102
@test isapprox(besseli(v, xx), Float64(sf), rtol=2e-13)
103103
end
104104

105+
# test Inf
106+
@test isinf(besseli(2, Inf))
107+
105108
### tests for negative arguments
106109

107110
(v, x) = 12.0, 3.2

test/besselk_test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ for v in nu, xx in x
120120
@test isapprox(besselk(v, xx), Float64(sf), rtol=2e-13)
121121
end
122122

123+
# test Inf
124+
@test iszero(besselk(2, Inf))
125+
123126
### tests for negative arguments
124127

125128
(v, x) = 12.0, 3.2

0 commit comments

Comments
 (0)