Skip to content

Commit

Permalink
Add more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Nov 24, 2023
1 parent 64ba77b commit 8fc0764
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/pipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ using Interpolations
for BC in (Throw, Flat, Line, Free, Reflect, InPlace, InPlaceQ, Periodic)
for GT in (OnGrid, OnCell)
@test BC(GT) == BC(GT())
@test BC{GT}(GT) == BC{GT}(GT())
@test GT |> BC == BC(GT())
for D in (Cubic, Quadratic)
@test GT |> BC |> D == D(BC(GT()))
@test GT |> BC |> D{BC{GT}} == D(BC(GT()))
@test D{BC}(BC) == D{BC}(BC())
end
end
@test Linear(Throw{OnGrid}) == Linear(Throw{OnGrid}())
end
@test BSpline() == BSpline(Linear())
@test_throws ArgumentError Cubic{Throw}(Flat)
@test_throws ArgumentError Quadratic{Throw}(Flat)
end

0 comments on commit 8fc0764

Please sign in to comment.