Mercurial > repos > public > sbplib_julia
comparison test/Grids/tensor_grid_test.jl @ 1411:faffc5957bf2 bugfix/grids/complete_interface_impl
REVIEW: Suggest support for colon indexing
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 22 Aug 2023 22:22:20 +0200 |
parents | c7c5bc2a1ce2 |
children | 410bc321242c |
comparison
equal
deleted
inserted
replaced
1410:c7c5bc2a1ce2 | 1411:faffc5957bf2 |
---|---|
41 @test g[end, end] == g[11,6] | 41 @test g[end, end] == g[11,6] |
42 | 42 |
43 @test axes(g, 1) == 1:11 | 43 @test axes(g, 1) == 1:11 |
44 @test axes(g, 2) == 1:6 | 44 @test axes(g, 2) == 1:6 |
45 @test axes(g) == (1:11,1:6) | 45 @test axes(g) == (1:11,1:6) |
46 | |
47 # REVIEW: Would be nice if this worked. | |
48 @test_broken g[:, end] == g[1:11,6] | |
46 end | 49 end |
47 | 50 |
48 @testset "cartesian indexing" begin | 51 @testset "cartesian indexing" begin |
49 cases = [ | 52 cases = [ |
50 (TensorGrid(g₁, g₂), (1,1) ), | 53 (TensorGrid(g₁, g₂), (1,1) ), |