comparison 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
comparison
equal deleted inserted replaced
1922:84e5ab97902d 1923:a2923694d5b7
30 @test size(CartesianAtlas([c c; c c])) == (2,2) 30 @test size(CartesianAtlas([c c; c c])) == (2,2)
31 @test size(CartesianAtlas([c c c; c c c])) == (2,3) 31 @test size(CartesianAtlas([c c c; c c c])) == (2,3)
32 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) 32 @test size(CartesianAtlas([c c; c c; c c])) == (3,2)
33 end 33 end
34 34
35 west = CartesianBoundary{1,LowerBoundary} 35 @testset "connections" begin
36 east = CartesianBoundary{1,UpperBoundary} 36 west = CartesianBoundary{1,LowerBoundary}
37 south = CartesianBoundary{2,LowerBoundary} 37 east = CartesianBoundary{1,UpperBoundary}
38 north = CartesianBoundary{2,UpperBoundary} 38 south = CartesianBoundary{2,LowerBoundary}
39 north = CartesianBoundary{2,UpperBoundary}
39 40
40 @test Set(connections(a)) == Set([ 41 @test Set(connections(a)) == Set([
41 (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()), 42 (MultiBlockBoundary{(1,1), east}(), MultiBlockBoundary{(2,1), west}()),
42 (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()), 43 (MultiBlockBoundary{(1,2), east}(), MultiBlockBoundary{(2,2), west}()),
43 (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()), 44 (MultiBlockBoundary{(1,1), north}(), MultiBlockBoundary{(1,2), south}()),
44 (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()), 45 (MultiBlockBoundary{(2,1), north}(), MultiBlockBoundary{(2,2), south}()),
45 ]) 46 ])
47 end
46 end 48 end
47 49
48 @testset "UnstructuredAtlas" begin 50 @testset "UnstructuredAtlas" begin
49 @test_broken false 51 @test_broken false
50 end 52 end