diff 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
line wrap: on
line diff
--- a/test/Grids/manifolds_test.jl	Fri Feb 07 09:20:24 2025 +0100
+++ b/test/Grids/manifolds_test.jl	Fri Feb 07 09:22:50 2025 +0100
@@ -19,16 +19,21 @@
 end
 
 @testset "CartesianAtlas" begin
-    c = Chart(identity, unitsquare())
+    @testset "Constructors" begin
+        c = Chart(identity, unitsquare())
+        @test CartesianAtlas([c c; c c]) isa Atlas
 
-    a = CartesianAtlas([c c; c c])
-    @test a isa Atlas
-    @test charts(a) == [c c; c c]
+        c2 = Chart(x->2x, unitsquare())
+        @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas
+        @test CartesianAtlas(@SMatrix[c c; c c]) isa CartesianAtlas
+        @test CartesianAtlas(@SMatrix[c c2; c2 c]) isa CartesianAtlas
+    end
 
-    c2 = Chart(x->2x, unitsquare())
-    @test CartesianAtlas([c c2; c2 c]) isa CartesianAtlas
-    @test CartesianAtlas(@SMatrix[c c; c c]) isa CartesianAtlas
-    @test CartesianAtlas(@SMatrix[c c2; c2 c]) isa CartesianAtlas
+    @testset "Getters" begin
+        c = Chart(identity, unitsquare())
+        a = CartesianAtlas([c c; c c])
+        @test charts(a) == [c c; c c]
+    end
 
     @testset "connections" begin
         # 2D