diff test/Grids/manifolds_test.jl @ 1572:157c43966b06 feature/grids/manifolds

Add some tests and implement parameterspace for ConcreteChart
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 25 Apr 2024 14:13:41 +0200
parents 35fe4375b35f
children 14d79b13b54f
line wrap: on
line diff
--- a/test/Grids/manifolds_test.jl	Thu Apr 25 14:00:40 2024 +0200
+++ b/test/Grids/manifolds_test.jl	Thu Apr 25 14:13:41 2024 +0200
@@ -35,7 +35,13 @@
 end
 
 @testset "Chart" begin
-    @test ConcreteChart(x->2x, unitsquare()) isa Chart{2}
+end
+
+@testset "ConcreteChart" begin
+    c = ConcreteChart(x->2x, unitsquare())
+    @test c isa Chart{2}
+    @test c([3,2]) == [6,4]
+    @test parameterspace(c) == unitsquare()
 end
 
 @testset "Atlas" begin