Skip to content

Commit 8fc0764

Browse files
committed
Add more coverage
1 parent 64ba77b commit 8fc0764

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/pipes.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ using Interpolations
55
for BC in (Throw, Flat, Line, Free, Reflect, InPlace, InPlaceQ, Periodic)
66
for GT in (OnGrid, OnCell)
77
@test BC(GT) == BC(GT())
8+
@test BC{GT}(GT) == BC{GT}(GT())
89
@test GT |> BC == BC(GT())
910
for D in (Cubic, Quadratic)
1011
@test GT |> BC |> D == D(BC(GT()))
1112
@test GT |> BC |> D{BC{GT}} == D(BC(GT()))
13+
@test D{BC}(BC) == D{BC}(BC())
1214
end
1315
end
16+
@test Linear(Throw{OnGrid}) == Linear(Throw{OnGrid}())
1417
end
1518
@test BSpline() == BSpline(Linear())
19+
@test_throws ArgumentError Cubic{Throw}(Flat)
20+
@test_throws ArgumentError Quadratic{Throw}(Flat)
1621
end

0 commit comments

Comments
 (0)