Skip to content

Commit

Permalink
Fix etp issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SomTambe committed Jul 29, 2021
1 parent dae3235 commit 4039837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/gradient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ using ColorVectorSpace: RGB, Gray, N0f8, Colorant
for dt in dtypes
for dm in dims
itp = interpolate(rand(dt, ntuple(_ -> 5, dm)...), BSpline(Linear()))
etp = extrapolate(itp, rand(dt))
cs = ntuple(_->3, dm)
@test @inferred(Interpolations.gradient(etp, cs...)) == @inferred(Interpolations.gradient(itp, cs...))
for ds in [ntuple(_->-0.5, dm), ntuple(_->5.5, dm), ntuple(_->6, dm)]
Expand All @@ -227,6 +228,7 @@ using ColorVectorSpace: RGB, Gray, N0f8, Colorant
for dm in dims
for bc in BC
itp = interpolate(rand(5, 5), BSpline(Linear()))
etp = extrapolate(itp, bc())
cs = ntuple(_->3, 2)
@test @inferred(Interpolations.gradient(etp, cs...)) == @inferred(Interpolations.gradient(itp, cs...))
for ds in [ntuple(_->-0.5, 2), ntuple(_->5.5, 2), ntuple(_->6, 2)]
Expand Down

0 comments on commit 4039837

Please sign in to comment.