Skip to content

Commit 4dde00d

Browse files
authored
use gamma instead of factorial in tests (#45)
1 parent 1cc65c4 commit 4dde00d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ FastTransforms = "0.10, 0.11, 0.12, 0.13, 0.14"
2222
InfiniteArrays = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10, 0.11, 0.12"
2323
IntervalSets = "0.5, 0.6, 0.7"
2424
Reexport = "0.2, 1"
25-
SpecialFunctions = "0.8, 0.9, 0.10, 1.0"
25+
SpecialFunctions = "0.8, 0.9, 0.10, 1.0, 2.0"
2626
julia = "1.3"
2727

2828
[extras]

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ApproxFunBase: testspace, testtransforms, testmultiplication, testraggedb
55
testcalculus, Block, Vec, testfunctional, EmptyDomain, UnionDomain
66
using LinearAlgebra
77
using SpecialFunctions
8-
import SpecialFunctions: factorial
8+
_factorial(n) = gamma(n+1)
99
using Test
1010

1111
@testset "Periodic Domains" begin
@@ -262,7 +262,7 @@ end
262262
z=Fun(identity,Circle())
263263
cfs=exp(z).coefficients[1:2:end]
264264
for k=1:length(cfs)
265-
@test abs(cfs[k]-1/factorial(1.0(k-1))) 1E-10
265+
@test abs(cfs[k]-1/_factorial(k-1)) 1E-10
266266
end
267267

268268
## Test bug in multiplication

0 commit comments

Comments
 (0)