comparison 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
comparison
equal deleted inserted replaced
1571:c2620118f110 1572:157c43966b06
33 @test Simplex([1,2], [3,4]) isa Simplex{Int, 2} 33 @test Simplex([1,2], [3,4]) isa Simplex{Int, 2}
34 @test Simplex([1,2,3], [4,5,6],[1,1,1]) isa Simplex{Int, 3} 34 @test Simplex([1,2,3], [4,5,6],[1,1,1]) isa Simplex{Int, 3}
35 end 35 end
36 36
37 @testset "Chart" begin 37 @testset "Chart" begin
38 @test ConcreteChart(x->2x, unitsquare()) isa Chart{2} 38 end
39
40 @testset "ConcreteChart" begin
41 c = ConcreteChart(x->2x, unitsquare())
42 @test c isa Chart{2}
43 @test c([3,2]) == [6,4]
44 @test parameterspace(c) == unitsquare()
39 end 45 end
40 46
41 @testset "Atlas" begin 47 @testset "Atlas" begin
42 48
43 end 49 end