Mercurial > repos > public > sbplib_julia
diff test/Grids/manifolds_test.jl @ 1923:a2923694d5b7 feature/grids/manifolds
Wrap connection tests in a testset
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 06 Feb 2025 15:32:09 +0100 |
parents | 7fb713570965 |
children | c02797f146c1 |
line wrap: on
line diff
--- a/test/Grids/manifolds_test.jl Thu Feb 06 08:59:47 2025 +0100 +++ b/test/Grids/manifolds_test.jl Thu Feb 06 15:32:09 2025 +0100 @@ -32,17 +32,19 @@ @test size(CartesianAtlas([c c; c c; c c])) == (3,2) end - west = CartesianBoundary{1,LowerBoundary} - east = CartesianBoundary{1,UpperBoundary} - south = CartesianBoundary{2,LowerBoundary} - north = CartesianBoundary{2,UpperBoundary} + @testset "connections" begin + west = CartesianBoundary{1,LowerBoundary} + east = CartesianBoundary{1,UpperBoundary} + south = CartesianBoundary{2,LowerBoundary} + north = CartesianBoundary{2,UpperBoundary} - @test Set(connections(a)) == Set([ - (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()), - (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()), - (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()), - (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()), - ]) + @test Set(connections(a)) == Set([ + (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()), + (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()), + (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()), + (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()), + ]) + end end @testset "UnstructuredAtlas" begin