Mercurial > repos > public > sbplib_julia
comparison test/Grids/tensor_grid_test.jl @ 1413:410bc321242c bugfix/grids/complete_interface_impl
Add todo for colon-indexing and remove tests
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 23 Aug 2023 09:32:01 +0200 |
parents | faffc5957bf2 |
children | 1aa8adbf13d5 |
comparison
equal
deleted
inserted
replaced
1412:e56277744ebb | 1413:410bc321242c |
---|---|
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] | |
49 end | 46 end |
50 | 47 |
51 @testset "cartesian indexing" begin | 48 @testset "cartesian indexing" begin |
52 cases = [ | 49 cases = [ |
53 (TensorGrid(g₁, g₂), (1,1) ), | 50 (TensorGrid(g₁, g₂), (1,1) ), |