Mercurial > repos > public > sbplib_julia
comparison test/Grids/manifolds_test.jl @ 1933:2801507dbee1 feature/grids/manifolds
More testsets
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Feb 2025 09:22:50 +0100 |
parents | ac63820222f8 |
children | 1b012e2d5db1 |
comparison
equal
deleted
inserted
replaced
1932:ac63820222f8 | 1933:2801507dbee1 |
---|---|
17 | 17 |
18 @test jacobian(c, [3,2]) == [2,2] | 18 @test jacobian(c, [3,2]) == [2,2] |
19 end | 19 end |
20 | 20 |
21 @testset "CartesianAtlas" begin | 21 @testset "CartesianAtlas" begin |
22 c = Chart(identity, unitsquare()) | 22 @testset "Constructors" begin |
23 c = Chart(identity, unitsquare()) | |
24 @test CartesianAtlas([c c; c c]) isa Atlas | |
23 | 25 |
24 a = CartesianAtlas([c c; c c]) | 26 c2 = Chart(x->2x, unitsquare()) |
25 @test a isa Atlas | 27 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas |
26 @test charts(a) == [c c; c c] | 28 @test CartesianAtlas(@SMatrix[c c; c c]) isa CartesianAtlas |
29 @test CartesianAtlas(@SMatrix[c c2; c2 c]) isa CartesianAtlas | |
30 end | |
27 | 31 |
28 c2 = Chart(x->2x, unitsquare()) | 32 @testset "Getters" begin |
29 @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas | 33 c = Chart(identity, unitsquare()) |
30 @test CartesianAtlas(@SMatrix[c c; c c]) isa CartesianAtlas | 34 a = CartesianAtlas([c c; c c]) |
31 @test CartesianAtlas(@SMatrix[c c2; c2 c]) isa CartesianAtlas | 35 @test charts(a) == [c c; c c] |
36 end | |
32 | 37 |
33 @testset "connections" begin | 38 @testset "connections" begin |
34 # 2D | 39 # 2D |
35 a = CartesianAtlas(fill(Chart(identity, unitsquare()), 2,3)) | 40 a = CartesianAtlas(fill(Chart(identity, unitsquare()), 2,3)) |
36 west = CartesianBoundary{1,LowerBoundary} | 41 west = CartesianBoundary{1,LowerBoundary} |