Skip to content

Commit

Permalink
Add tests for pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Nov 24, 2023
1 parent 6a26ce7 commit 64ba77b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/pipes.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Test
using Interpolations

@testset "Pipes" begin
for BC in (Throw, Flat, Line, Free, Reflect, InPlace, InPlaceQ, Periodic)
for GT in (OnGrid, OnCell)
@test BC(GT) == BC(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()))
end
end
end
@test BSpline() == BSpline(Linear())
end

0 comments on commit 64ba77b

Please sign in to comment.