Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1646:5f348cc5598e feature/grids/min_spacing
Add min_spacing function for grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 11:30:38 +0200 |
parents | 3e7438e2a033 |
children | 3714a391545a 13a7a4ff49e3 3ac94e8f28b3 |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Wed Jun 26 10:20:32 2024 +0200 +++ b/test/Grids/equidistant_grid_test.jl Wed Jun 26 11:30:38 2024 +0200 @@ -56,6 +56,11 @@ @test inverse_spacing(EquidistantGrid(0:0.1:10)) == 10 end + @testset "min_spacing" begin + @test min_spacing(EquidistantGrid(0:10)) == 1 + @test min_spacing(EquidistantGrid(0:0.1:10)) == 0.1 + end + @testset "boundary_identifiers" begin g = EquidistantGrid(0:0.1:10) @test boundary_identifiers(g) == (Lower(), Upper())