Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
1844:1987347752ef | 1867:de4b4f2aee4f |
---|---|
71 @test parameterspace(c) == unitsquare() | 71 @test parameterspace(c) == unitsquare() |
72 @test ndims(c) == 2 | 72 @test ndims(c) == 2 |
73 end | 73 end |
74 | 74 |
75 @testset "CartesianAtlas" begin | 75 @testset "CartesianAtlas" begin |
76 @test_broken false | 76 c = Chart(identity, unitsquare()) |
77 | |
78 a = CartesianAtlas([c c; c c]) | |
79 @test a isa Atlas | |
80 @test charts(a) == [c c; c c] | |
81 @test_broken connections(a) == [ | |
82 ( | |
83 ((1,1), CartesianBoundary{1,UpperBoundary}()), | |
84 ((1,2), CartesianBoundary{1,LowerBoundary}()), | |
85 ), | |
86 ( | |
87 ((1,1), CartesianBoundary{2,LowerBoundary}()), | |
88 ((2,1), CartesianBoundary{2,UpperBoundary}()), | |
89 ), | |
90 ( | |
91 ((2,2), CartesianBoundary{1,LowerBoundary}()), | |
92 ((2,1), CartesianBoundary{1,UpperBoundary}()), | |
93 ), | |
94 ( | |
95 ((2,2), CartesianBoundary{2,UpperBoundary}()), | |
96 ((1,2), CartesianBoundary{2,LowerBoundary}()), | |
97 ) | |
98 ] | |
77 end | 99 end |
78 | 100 |
79 @testset "UnstructuredAtlas" begin | 101 @testset "UnstructuredAtlas" begin |
80 @test_broken false | 102 @test_broken false |
81 end | 103 end |