Closed tlow22 closed 1 year ago
Hi, thanks for catching that and for your kind words!
Feel free to make a small PR (or I can do it myself if you prefer). I think the best solution would be to actually reuse the ==
operator already defined for Spline
s.
Noting that SplineInterpolation
is a subtype of SplineWrapper
, the following definition should do the job and be quite generic:
# In src/Splines/wrapper.jl
Base.:(==)(o1::SplineWrapper, o2::SplineWrapper) = spline(o1) == spline(o2)
Ah a much better solution, I'll get on it then.
Closed by #75
Hello, thanks for the helpful package! Was doing some unit testing today when I found that the cause of failure was that the equality operation
==
onSplineInterpolation
doesn't work as I expected it to.Example:
I can make a small PR that basically extends the
==
operator: