Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1492:d9d9ab18cdfc feature/grids/curvilinear
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 01 Dec 2023 11:52:26 +0100 |
parents | 37cf9f79caa4 |
children | 43aaf710463e |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Thu Nov 23 16:08:47 2023 +0100 +++ b/test/Grids/equidistant_grid_test.jl Fri Dec 01 11:52:26 2023 +0100 @@ -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