From 64ba77b2942d839997283f32041c55ec2e897e5b Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Fri, 24 Nov 2023 01:22:55 -0500 Subject: [PATCH] Add tests for pipes --- test/pipes.jl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/pipes.jl diff --git a/test/pipes.jl b/test/pipes.jl new file mode 100644 index 00000000..4af24485 --- /dev/null +++ b/test/pipes.jl @@ -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