Skip to content

Commit db017f1

Browse files
committed
Use 1.0 compatible named tuple destructuring syntax
1 parent 3b3d9b5 commit db017f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TestUtils.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ prior to calling this function.
2828
function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
2929
@testset "fft correctness" begin
3030
# DFT along last dimension, results computed using FFTW
31-
for (; _x, dims, _fftw_fft) in (
31+
for test_case in (
3232
(; _x = collect(1:7), dims = 1,
3333
_fftw_fft = [28.0 + 0.0im,
3434
-3.5 + 7.267824888003178im,
@@ -70,6 +70,7 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
7070
[26.0 + 58.0im -4.0 - 4.0im; -2.0 - 2.0im 0.0 + 0.0im],
7171
dims=3)),
7272
)
73+
_x, dims, _fftw_fft = test_case
7374
x = convert(ArrayType, _x) # dummy array that will be passed to plans
7475
x_complex = convert(ArrayType, complex.(x)) # for testing complex FFTs
7576
x_complexfloat = convert(ArrayType, complex.(float.(x))) # for testing in-place complex FFTs

0 commit comments

Comments
 (0)