Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1927:fe18cdad2b27 feature/grids/manifolds
Test construction of CartesianAtlas with different type on the charts
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 08:44:36 +0100 |
parents | c02797f146c1 |
children | 96b3e9c516fe |
comparison
equal
deleted
inserted
replaced
1926:c02797f146c1 | 1927:fe18cdad2b27 |
---|---|
23 | 23 |
24 a = CartesianAtlas([c c; c c]) | 24 a = CartesianAtlas([c c; c c]) |
25 @test a isa Atlas | 25 @test a isa Atlas |
26 @test charts(a) == [c c; c c] | 26 @test charts(a) == [c c; c c] |
27 | 27 |
28 c2 = Chart(x->2x, unitsquare()) | |
29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas | |
28 | 30 |
29 @testset "size" begin | 31 @testset "size" begin |
30 @test size(CartesianAtlas([c c; c c])) == (2,2) | 32 @test size(CartesianAtlas([c c; c c])) == (2,2) |
31 @test size(CartesianAtlas([c c c; c c c])) == (2,3) | 33 @test size(CartesianAtlas([c c c; c c c])) == (2,3) |
32 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) | 34 @test size(CartesianAtlas([c c; c c; c c])) == (3,2) |