Skip to content

Commit f73939b

Browse files
committed
test more dimensionmismatch
1 parent 4bf9b16 commit f73939b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/argument_checking.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ end
8383
@test_throws DimensionMismatch LinearAlgebra.mul!(y1, plan_fft(x1), x1)
8484
end
8585

86-
@testset "$(N)D array" for N in 2:3
86+
@testset "$(N)D array" for N in 2:4
8787
xN = randn(ComplexF64, ntuple(i -> 3, N))
8888
yN = similar(xN, size(xN) .+ 1)
8989

@@ -93,6 +93,7 @@ end
9393

9494
@testset "$(N)D plan" begin
9595
@test_throws DimensionMismatch LinearAlgebra.mul!(yN, plan_fft(xN), xN)
96+
@test_throws DimensionMismatch LinearAlgebra.mul!(yN, plan_fft(xN, 1:N-1), xN)
9697
end
9798
end
9899
end

0 commit comments

Comments
 (0)