Skip to content

Commit 9db8caf

Browse files
fix test coverage
1 parent 7ff1a55 commit 9db8caf

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/2d.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ using ImageFiltering: borderinstance
3636
end
3737
end
3838

39-
function supported_algs(img, kernel, border)
40-
if eltype(img) isa AbstractFloat
41-
(Algorithm.FIR(), Algorithm.FIRTiled(), Algorithm.FFT(), planned_fft(img, kernel, border))
42-
else
43-
# TODO: extend planned_fft to support other types
44-
(Algorithm.FIR(), Algorithm.FIRTiled(), Algorithm.FFT())
45-
end
39+
# TODO: extend planned_fft to support more types than just floats
40+
function supported_algs(img::AbstractArray{T}, kernel, border) where {T<:AbstractFloat}
41+
return (Algorithm.FIR(), Algorithm.FIRTiled(), Algorithm.FFT(), planned_fft(img, kernel, border))
42+
end
43+
function supported_algs(img::AbstractArray, kernel, border)
44+
return (Algorithm.FIR(), Algorithm.FIRTiled(), Algorithm.FFT())
4645
end
4746

4847
@testset "FIR/FFT" begin

0 commit comments

Comments
 (0)