Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1929:c5affb342e73 feature/grids/manifolds
Remove implementation of Base.size for CartesianAtlas
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 09:14:43 +0100 |
parents | 96b3e9c516fe |
children | e985eaa20ecf |
comparison
equal
deleted
inserted
replaced
1928:96b3e9c516fe | 1929:c5affb342e73 |
---|---|
26 @test charts(a) == [c c; c c] | 26 @test charts(a) == [c c; c c] |
27 | 27 |
28 c2 = Chart(x->2x, unitsquare()) | 28 c2 = Chart(x->2x, unitsquare()) |
29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas | 29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas |
30 | 30 |
31 @testset "size" begin | |
32 @test size(CartesianAtlas([c c; c c])) == (2,2) | |
33 @test size(CartesianAtlas([c c c; c c c])) == (2,3) | |
34 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) | |
35 end | |
36 | 31 |
37 @testset "connections" begin | 32 @testset "connections" begin |
38 a = CartesianAtlas(fill(c, 2,3)) | 33 a = CartesianAtlas(fill(c, 2,3)) |
39 # 2D | 34 # 2D |
40 west = CartesianBoundary{1,LowerBoundary} | 35 west = CartesianBoundary{1,LowerBoundary} |