Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1941:1e3089197397 feature/grids/manifolds
Add tests for boundaries(::UnstructuredAtlas). Attempt implementation but more Charts functionality is needed
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 13:59:13 +0100 |
parents | 5f6e455df31e |
children | b8395f69ad80 |
comparison
equal
deleted
inserted
replaced
1940:1bd0e23499da | 1941:1e3089197397 |
---|---|
182 @test charts(a) == [c,c,c] | 182 @test charts(a) == [c,c,c] |
183 @test connections(a) == cn | 183 @test connections(a) == cn |
184 end | 184 end |
185 | 185 |
186 @testset "boundaries" begin | 186 @testset "boundaries" begin |
187 @test_broken false | 187 c = Chart(identity, unitsquare()) |
188 cn = [ | |
189 (MultiBlockBoundary{1, east}(), MultiBlockBoundary{2, west}()), | |
190 (MultiBlockBoundary{1, north}(), MultiBlockBoundary{3, west}()), | |
191 (MultiBlockBoundary{2, north}(), MultiBlockBoundary{3, south}()), | |
192 ] | |
193 | |
194 a = UnstructuredAtlas([c, c, c], cn) | |
195 | |
196 @test_broken Set(boundaries(a)) == Set([ | |
197 MultiBlockBoundary{1, west}(), | |
198 MultiBlockBoundary{1, south}(), | |
199 MultiBlockBoundary{2, south}(), | |
200 MultiBlockBoundary{2, east}(), | |
201 MultiBlockBoundary{3, north}(), | |
202 MultiBlockBoundary{3, east}(), | |
203 ]) | |
204 | |
188 end | 205 end |
189 end | 206 end |