Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1473:869a40cda18c
Merge feature/grids/boundary_indicies
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 01 Dec 2023 11:48:04 +0100 |
parents | 37cf9f79caa4 |
children | 43aaf710463e |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Wed Nov 22 17:52:03 2023 +0100 +++ b/test/Grids/equidistant_grid_test.jl Fri Dec 01 11:48:04 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