Skip to content

Commit 9a777a7

Browse files
Add tests from #71
Closes #71 since they pass
1 parent 9993ac0 commit 9a777a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/specialfunctionstests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using FastTransforms, Test
22

3-
import FastTransforms: pochhammer, sqrtpi, Cnλ, Λ, lambertw, Cnαβ, Anαβ
3+
import FastTransforms: pochhammer, sqrtpi, SpecialFunctions.gamma
4+
import FastTransforms: Cnλ, Λ, lambertw, Cnαβ, Anαβ
45
import FastTransforms: chebyshevmoments1, chebyshevmoments2, chebyshevjacobimoments1, chebyshevjacobimoments2, chebyshevlogmoments1, chebyshevlogmoments2
56

67
@testset "Special functions" begin
@@ -13,6 +14,9 @@ import FastTransforms: chebyshevmoments1, chebyshevmoments2, chebyshevjacobimome
1314
@test pochhammer(-1,-0.5) == 0
1415
@test 1.0/pochhammer(-0.5,-0.5) == 0
1516
@test pochhammer(-1+0im,-1) == -0.5
17+
@test pochhammer(2,1) == pochhammer(2,1.0) == pochhammer(2.0,1) == 2
18+
@test pochhammer(1.1,2.2) gamma(3.3)/gamma(1.1)
19+
@test pochhammer(-2,1) == pochhammer(-2,1.0) == pochhammer(-2.0,1) == -2
1620

1721
n = 0:1000
1822
λ = 0.125

0 commit comments

Comments
 (0)