Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1534:d4adee53aa30 bugfix/sbp_operators/stencil_return_type
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 11 Apr 2024 22:51:00 +0200 |
parents | 37cf9f79caa4 |
children | 43aaf710463e |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Fri Nov 24 22:42:50 2023 +0100 +++ b/test/Grids/equidistant_grid_test.jl Thu Apr 11 22:51:00 2024 +0200 @@ -68,6 +68,17 @@ @test boundary_grid(g, Upper()) == ZeroDimGrid(1.0) end + @testset "boundary_indices" begin + g = EquidistantGrid(0:0.1:1) + @test boundary_indices(g, Lower()) == (1,) + @test boundary_indices(g, Upper()) == (11,) + + g = EquidistantGrid(2:0.1:10) + @test boundary_indices(g, Lower()) == (1,) + @test boundary_indices(g, Upper()) == (81,) + + end + @testset "refine" begin g = EquidistantGrid(0:0.1:1) @test refine(g, 1) == g