Mercurial > repos > public > sbplib_julia
diff test/Grids/manifolds_test.jl @ 1867:de4b4f2aee4f feature/grids/manifolds
Add some tests for CartesianAtlas
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 12 Nov 2024 18:15:27 +0100 |
parents | ea98f03e18e0 |
children | 27534b471b6a |
line wrap: on
line diff
--- a/test/Grids/manifolds_test.jl Tue Oct 22 15:44:03 2024 +0200 +++ b/test/Grids/manifolds_test.jl Tue Nov 12 18:15:27 2024 +0100 @@ -73,7 +73,29 @@ end @testset "CartesianAtlas" begin - @test_broken false + c = Chart(identity, unitsquare()) + + a = CartesianAtlas([c c; c c]) + @test a isa Atlas + @test charts(a) == [c c; c c] + @test_broken connections(a) == [ + ( + ((1,1), CartesianBoundary{1,UpperBoundary}()), + ((1,2), CartesianBoundary{1,LowerBoundary}()), + ), + ( + ((1,1), CartesianBoundary{2,LowerBoundary}()), + ((2,1), CartesianBoundary{2,UpperBoundary}()), + ), + ( + ((2,2), CartesianBoundary{1,LowerBoundary}()), + ((2,1), CartesianBoundary{1,UpperBoundary}()), + ), + ( + ((2,2), CartesianBoundary{2,UpperBoundary}()), + ((1,2), CartesianBoundary{2,LowerBoundary}()), + ) + ] end @testset "UnstructuredAtlas" begin