Skip to content

Commit 81c6e23

Browse files
committed
fix some tests
1 parent 606e24f commit 81c6e23

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/besselk_test.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ t = Float64.([besselk(m, x) for m in m, x in x])
9191

9292
# Float 32 tests for aysmptotic expansion
9393
m = 20:5:200; x = 5.0f0:2.0f0:400.0f0
94-
t = [besselk(m, x) for m in m, x in x]
95-
@test t[10] isa Float32
96-
@test t Float32.([SpecialFunctions.besselk(m, x) for m in m, x in x])
94+
for m in m, x in x
95+
@test Float32(besselk(m, x)) Float32(besselk(m, widen(x)))
96+
end
9797

9898
# test for low values and medium orders
9999
m = 20:5:50; x = [1f-3, 1f-2, 1f-1, 1f0, 1.5f0, 2.0f0, 4.0f0]
@@ -166,7 +166,6 @@ end
166166
(v, x) = -14.6, -10.6
167167
#@test besselk(v,x) ≈ -0.0180385087581148387140033906859 - 1.54653251445680014758965158559*im
168168

169-
170169
# test besselk_levin for real and complex
171170

172171
@test Bessels.BesselFunctions.besselkx_levin(1.1, 2.4, Val(16)) SpecialFunctions.besselkx(1.1, 2.4)

0 commit comments

Comments
 (0)