Skip to content

Commit 3529e73

Browse files
committed
Incorporate backward tests
1 parent 5e8fd7b commit 3529e73

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

test/complex_backward.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
using FFTA, Test
2+
3+
@testset verbose = true "bfft 1D complex, size $N" for N in [8, 11, 15, 100]
4+
x = ones(ComplexF64, N)
5+
y = bfft(x)
6+
@test y[1] N && y[2:end] 0*x[2:end] atol=1e-12
7+
end

test/ffta.jl renamed to test/complex_forward.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using FFTA, Test
22

3-
for N in [8, 11, 15, 100]
3+
@testset verbose = true "fft 1D complex, size $N" for N in [8, 11, 15, 100]
44
x = zeros(ComplexF64, N)
55
x[1] = 1
66
y = fft(x)

test/runtests.jl

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

33
@testset verbose = true "Unit Tests" begin
4-
include("ffta.jl")
4+
include("complex_forward.jl")
5+
include("complex_backward.jl")
56
end

0 commit comments

Comments
 (0)