Skip to content

Commit

Permalink
[Images] Compensate for isapprox(eps(), 0.0) = false on julia 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Aug 5, 2015
1 parent 116c8d3 commit b7ac249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/Images/test/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ facts("Algorithms") do
Afft = Images.imfilter_fft(A, kern, "inner")
@fact Af => roughly(Afft)
h = [0.24,0.87]
@fact Images.imfilter(eye(3), h, "inner") => roughly(Images.imfilter_fft(eye(3), h, "inner")) # issue #204
hfft = Images.imfilter_fft(eye(3), h, "inner")
hfft[abs(hfft) .< 3eps()] = 0
@fact Images.imfilter(eye(3), h, "inner") => roughly(hfft) # issue #204

@fact approx_equal(Images.imfilter_gaussian(ones(4,4), [5,5]), 1.0) => true
A = fill(convert(Float32, NaN), 3, 3)
Expand Down

0 comments on commit b7ac249

Please sign in to comment.