Mercurial > repos > public > sbplib_julia
diff test/Grids/geometry_test.jl @ 2071:9e9c56f5a656 feature/grids/geometry_functions
Add parameter validation when calling a transfinite interpolation object
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Tue, 17 Feb 2026 20:37:53 +0100 |
| parents | 5c2448d6a201 |
| children | c36812de3f2d |
line wrap: on
line diff
--- a/test/Grids/geometry_test.jl Tue Feb 17 20:25:13 2026 +0100 +++ b/test/Grids/geometry_test.jl Tue Feb 17 20:37:53 2026 +0100 @@ -321,6 +321,14 @@ @test ti(1/2, 1) == (c+d)/2 @test ti(0, 1/2) == (a+d)/2 @test ti(1, 1/2) == (b+c)/2 + + @testset "Out of domain error" begin + @test_throws DomainError ti(-0.1, 0) + @test_throws DomainError ti(1.1, 0) + @test_throws DomainError ti(0, -0.1) + @test_throws DomainError ti(0, 1.1) + @test_throws DomainError ti(1.1, -0.1) + end end @testset "check_transfiniteinterpolation" begin
