@@ -83,13 +83,13 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
8383 end
8484 # test plan_fft and also inv and plan_inv of plan_ifft, which should all give
8585 # functionally identical plans
86- plans_to_test = [ plan_fft (x, dims), inv (plan_ifft (x, dims)),
87- AbstractFFTs. plan_inv (plan_ifft (x, dims))]
86+ plans_to_test = ( plan_fft (x, dims), inv (plan_ifft (x, dims)),
87+ AbstractFFTs. plan_inv (plan_ifft (x, dims)))
8888 for P in plans_to_test
8989 @test mul! (similar (y), P, copy (x_complexfloat)) ≈ fftw_fft
9090 end
9191 if test_inplace
92- push! (plans_to_test, plan_fft! (similar (x_complexfloat), dims))
92+ plans_to_test = (plans_to_test... , plan_fft! (similar (x_complexfloat), dims))
9393 end
9494 for P in plans_to_test
9595 @test eltype (P) <: Complex
@@ -124,13 +124,13 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
124124 if test_inplace
125125 @test AbstractFFTs. ifft! (copy (y), dims) ≈ fftw_ifft
126126 end
127- plans_to_test = [ plan_ifft (x, dims), inv (plan_fft (x, dims)),
128- AbstractFFTs. plan_inv (plan_fft (x, dims))]
127+ plans_to_test = ( plan_ifft (x, dims), inv (plan_fft (x, dims)),
128+ AbstractFFTs. plan_inv (plan_fft (x, dims)))
129129 for P in plans_to_test
130130 @test mul! (similar (x_complexfloat), P, copy (y)) ≈ fftw_ifft
131131 end
132132 if test_inplace
133- push! (plans_to_test, plan_ifft! (similar (x_complexfloat), dims))
133+ plans_to_test = (plans_to_test... , plan_ifft! (similar (x_complexfloat), dims))
134134 end
135135 for P in plans_to_test
136136 @test eltype (P) <: Complex
@@ -145,8 +145,8 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
145145 fftw_rfft = selectdim (fftw_fft, first (dims), 1 : (size (fftw_fft, first (dims)) ÷ 2 + 1 ))
146146 ry = AbstractFFTs. rfft (x_real, dims)
147147 @test ry ≈ fftw_rfft
148- for P in [ plan_rfft (similar (x_real), dims), inv (plan_irfft (similar (ry), size (x, first (dims)), dims)),
149- AbstractFFTs. plan_inv (plan_irfft (similar (ry), size (x, first (dims)), dims))]
148+ for P in ( plan_rfft (similar (x_real), dims), inv (plan_irfft (similar (ry), size (x, first (dims)), dims)),
149+ AbstractFFTs. plan_inv (plan_irfft (similar (ry), size (x, first (dims)), dims)))
150150 @test eltype (P) <: Real
151151 @test P * x_real ≈ fftw_rfft
152152 @test mul! (similar (ry), P, copy (x_real)) ≈ fftw_rfft
@@ -166,8 +166,8 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
166166 # IRFFT
167167 fftw_irfft = x_real
168168 @test AbstractFFTs. irfft (ry, size (x, first (dims)), dims) ≈ fftw_irfft
169- for P in [ plan_irfft (similar (ry), size (x, first (dims)), dims), inv (plan_rfft (similar (x_real), dims)),
170- AbstractFFTs. plan_inv (plan_rfft (similar (x_real), dims))]
169+ for P in ( plan_irfft (similar (ry), size (x, first (dims)), dims), inv (plan_rfft (similar (x_real), dims)),
170+ AbstractFFTs. plan_inv (plan_rfft (similar (x_real), dims)))
171171 @test P * ry ≈ fftw_irfft
172172 @test mul! (similar (x_real), P, copy (ry)) ≈ fftw_irfft
173173 @test P \ (P * ry) ≈ ry
0 commit comments