From 8fc07649bf6b7e3f56920e96b1a77b0c149c9a78 Mon Sep 17 00:00:00 2001 From: Mark Kittisopikul Date: Fri, 24 Nov 2023 01:58:51 -0500 Subject: [PATCH] Add more coverage --- test/pipes.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/pipes.jl b/test/pipes.jl index 4af24485..936078f8 100644 --- a/test/pipes.jl +++ b/test/pipes.jl @@ -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