Mercurial > repos > public > sbplib_julia
diff test/Grids/equidistant_grid_test.jl @ 1428:a936b414283a feature/grids/curvilinear
Merge bugfix/grids/complete_interface_impl
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 24 Aug 2023 08:50:10 +0200 |
parents | 1aa8adbf13d5 |
children | e3a80ef08d09 |
line wrap: on
line diff
--- a/test/Grids/equidistant_grid_test.jl Wed Aug 23 15:51:32 2023 +0200 +++ b/test/Grids/equidistant_grid_test.jl Thu Aug 24 08:50:10 2023 +0200 @@ -19,6 +19,9 @@ @test g[end] == 10.0 @test all(eachindex(g) .== 1:101) + + @test firstindex(g) == 1 + @test lastindex(g) == 101 end @testset "Iterator interface" begin @@ -35,6 +38,10 @@ @testset "Base" begin @test ndims(EquidistantGrid(0:10)) == 1 + + g = EquidistantGrid(0:0.1:10) + @test axes(g,1) == 1:101 + @test axes(g) == (1:101,) end @testset "spacing" begin