comparison test/Grids/manifolds_test.jl @ 1781:a73838c9ef94 feature/grids/manifolds

Let Chart implement Base.ndims instead of domain_dim
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 16 Sep 2024 09:05:47 +0200
parents 8ecdc5bb46be
children ea98f03e18e0
comparison
equal deleted inserted replaced
1780:8ecdc5bb46be 1781:a73838c9ef94
67 @testset "Chart" begin 67 @testset "Chart" begin
68 c = Chart(x->2x, unitsquare()) 68 c = Chart(x->2x, unitsquare())
69 @test c isa Chart{2} 69 @test c isa Chart{2}
70 @test c([3,2]) == [6,4] 70 @test c([3,2]) == [6,4]
71 @test parameterspace(c) == unitsquare() 71 @test parameterspace(c) == unitsquare()
72 @test ndims(c) == 2
72 end 73 end
73 74
74 @testset "Atlas" begin 75 @testset "Atlas" begin
75 76
76 end 77 end