Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/volumeops/derivatives/first_derivative_test.jl @ 2091:e21c295fb2da refactor/sbp_operators/direction_check
Restructure methods for equidistant grids with a dim argument
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Mon, 02 Mar 2026 15:41:14 +0100 |
| parents | 67d8fbbb9e58 |
| children |
line wrap: on
line diff
--- a/test/SbpOperators/volumeops/derivatives/first_derivative_test.jl Mon Mar 02 14:21:58 2026 +0100 +++ b/test/SbpOperators/volumeops/derivatives/first_derivative_test.jl Mon Mar 02 15:41:14 2026 +0100 @@ -18,7 +18,8 @@ @test first_derivative(g₂, stencil_set, 2) isa LazyTensor{Float64,2,2} @test first_derivative(g₁, stencil_set) == first_derivative(g₁, stencil_set, 1) - @test_throws DomainError(3, "Derivative direction must be in 1:1.") first_derivative(g₁, stencil_set, 3) + @test_throws DomainError(3, "Derivative direction must be 1.") first_derivative(g₁, stencil_set, 3) + @test_throws DomainError(3, "Derivative direction must be in 1:2.") first_derivative(g₂, stencil_set, 3) interior_stencil = CenteredStencil(-1,0,1) closure_stencils = [Stencil(-1,1, center=1)]
