Mercurial > repos > public > sbplib_julia
diff test/testGrids.jl @ 765:fdd48f6ace1c operator_storage_array_of_table
Merge in default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sun, 07 Feb 2021 21:32:21 +0100 |
parents | f0ceddeae993 |
children | 1d3e29ffc6c6 |
line wrap: on
line diff
--- a/test/testGrids.jl Sat Feb 06 20:45:34 2021 +0100 +++ b/test/testGrids.jl Sun Feb 07 21:32:21 2021 +0100 @@ -1,5 +1,6 @@ using Sbplib.Grids using Test +using Sbplib.RegionIndices @testset "Grids" begin @@ -53,6 +54,15 @@ @test restrict(g, 2:3) == EquidistantGrid((5,3),(0.0,0.0),(1.0,3.0)) @test restrict(g, [1,3]) == EquidistantGrid((2,3),(0.0,0.0),(2.0,3.0)) @test restrict(g, [2,1]) == EquidistantGrid((5,2),(0.0,0.0),(1.0,2.0)) + + @testset "boundary_identifiers" begin + g = EquidistantGrid((2,5,3), (0.0,0.0,0.0), (2.0,1.0,3.0)) + bids = (CartesianBoundary{1,Lower}(),CartesianBoundary{1,Upper}(), + CartesianBoundary{2,Lower}(),CartesianBoundary{2,Upper}(), + CartesianBoundary{3,Lower}(),CartesianBoundary{3,Upper}()) + @test boundary_identifiers(g) == bids + @inferred boundary_identifiers(g) + end end end