Skip to content

Commit 64ba77b

Browse files
committed
Add tests for pipes
1 parent 6a26ce7 commit 64ba77b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/pipes.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Test
2+
using Interpolations
3+
4+
@testset "Pipes" begin
5+
for BC in (Throw, Flat, Line, Free, Reflect, InPlace, InPlaceQ, Periodic)
6+
for GT in (OnGrid, OnCell)
7+
@test BC(GT) == BC(GT())
8+
@test GT |> BC == BC(GT())
9+
for D in (Cubic, Quadratic)
10+
@test GT |> BC |> D == D(BC(GT()))
11+
@test GT |> BC |> D{BC{GT}} == D(BC(GT()))
12+
end
13+
end
14+
end
15+
@test BSpline() == BSpline(Linear())
16+
end

0 commit comments

Comments
 (0)