comparison test/Grids/tensor_grid_test.jl @ 1828:8adecef380b4 refactor/grids/iterable_boundary_indices

Add some todos
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 17 Sep 2024 11:20:00 +0200
parents ab397590898e
children 871f3f1decea
comparison
equal deleted inserted replaced
1827:ab397590898e 1828:8adecef380b4
194 @test collect(boundary_indices(TensorGrid(g₁, g₂), TensorGridBoundary{2, Upper}())) == [CartesianIndex(i,6) for i ∈ 1:11] 194 @test collect(boundary_indices(TensorGrid(g₁, g₂), TensorGridBoundary{2, Upper}())) == [CartesianIndex(i,6) for i ∈ 1:11]
195 @test collect(boundary_indices(TensorGrid(g₁, g₄), TensorGridBoundary{1, Lower}())) == fill(1) 195 @test collect(boundary_indices(TensorGrid(g₁, g₄), TensorGridBoundary{1, Lower}())) == fill(1)
196 @test collect(boundary_indices(TensorGrid(g₁, g₄), TensorGridBoundary{1, Upper}())) == fill(11) 196 @test collect(boundary_indices(TensorGrid(g₁, g₄), TensorGridBoundary{1, Upper}())) == fill(11)
197 @test collect(boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Lower}())) == fill(1) 197 @test collect(boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Lower}())) == fill(1)
198 @test collect(boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Upper}())) == fill(11) 198 @test collect(boundary_indices(TensorGrid(g₄,g₁), TensorGridBoundary{2, Upper}())) == fill(11)
199 # TBD: What do we actually expect for 1D grids?
199 end 200 end
200 end 201 end
201 202
202 @testset "combined_coordinate_vector_type" begin 203 @testset "combined_coordinate_vector_type" begin
203 @test Grids.combined_coordinate_vector_type(Float64) == Float64 204 @test Grids.combined_coordinate_vector_type(Float64) == Float64