comparison test/Grids/manifolds_test.jl @ 1581:f77c5309dd2b feature/grids/manifolds

Rename ConcreteChart to Chart and remove the abstarct chart type
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 25 Apr 2024 22:32:54 +0200
parents fdee60ab8c4e
children d9d767980d6f
comparison
equal deleted inserted replaced
1580:fdee60ab8c4e 1581:f77c5309dd2b
48 48
49 @test unitsimplex(4) isa Simplex{Float64,4} 49 @test unitsimplex(4) isa Simplex{Float64,4}
50 end 50 end
51 51
52 @testset "Chart" begin 52 @testset "Chart" begin
53 end 53 c = Chart(x->2x, unitsquare())
54
55 @testset "ConcreteChart" begin
56 c = ConcreteChart(x->2x, unitsquare())
57 @test c isa Chart{2} 54 @test c isa Chart{2}
58 @test c([3,2]) == [6,4] 55 @test c([3,2]) == [6,4]
59 @test parameterspace(c) == unitsquare() 56 @test parameterspace(c) == unitsquare()
60 end 57 end
61 58