Mercurial > repos > public > sbplib_julia
changeset 1410:c7c5bc2a1ce2 bugfix/grids/complete_interface_impl
Add axes test
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 22 Aug 2023 22:21:48 +0200 |
parents | a7afba63adb5 |
children | faffc5957bf2 |
files | test/Grids/tensor_grid_test.jl |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/Grids/tensor_grid_test.jl Tue Aug 22 09:05:53 2023 +0200 +++ b/test/Grids/tensor_grid_test.jl Tue Aug 22 22:21:48 2023 +0200 @@ -39,6 +39,10 @@ @test g[begin, begin] == g[1,1] @test g[begin, end] == g[1,6] @test g[end, end] == g[11,6] + + @test axes(g, 1) == 1:11 + @test axes(g, 2) == 1:6 + @test axes(g) == (1:11,1:6) end @testset "cartesian indexing" begin