Skip to content

Commit 8e8a602

Browse files
committed
Fix typos
1 parent db017f1 commit 8e8a602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TestUtils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ function test_fft_backend(ArrayType=Array; test_real=true, test_inplace=true)
140140
@test fftdims(P) == dims
141141
end
142142

143-
if test_real && (x isa Real)
143+
if test_real && (eltype(x) <: Real)
144144
x_real = float.(x) # for testing in-place real FFTs
145145
# RFFT
146146
fftw_rfft = selectdim(fftw_fft, first(dims), 1:(size(fftw_fft, first(dims)) ÷ 2 + 1))
147-
ry = AbstractFFTs.rfft(x)
147+
ry = AbstractFFTs.rfft(x, dims)
148148
@test ry fftw_rfft
149149
for P in (plan_rfft(similar(x), dims), inv(plan_irfft(similar(ry), size(x, first(dims)), dims)),
150150
AbstractFFTs.plan_inv(plan_irfft(similar(ry), size(x, first(dims)), dims)))

0 commit comments

Comments
 (0)