Mercurial > repos > public > sbplib_julia
diff test/Grids/mapped_grid_test.jl @ 1569:473cf7677e0f feature/grids/manifolds
Add test for mapped_grid with a chart
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Apr 2024 13:51:54 +0200 |
parents | 5d32ecb98db8 |
children | c2620118f110 |
line wrap: on
line diff
--- a/test/Grids/mapped_grid_test.jl Thu Apr 25 13:51:17 2024 +0200 +++ b/test/Grids/mapped_grid_test.jl Thu Apr 25 13:51:54 2024 +0200 @@ -183,4 +183,14 @@ lg = equidistant_grid((10,11), (0,0), (1,1)) @test logicalgrid(mg) == lg @test collect(mg) == map(x̄, lg) + + + @testset "mapped_grid(::Chart,J)" begin + c = ConcreteChart(unitsquare()) do (x,y) + @SVector[2x, 3y] + end + + @test mapped_grid(c, 5, 4) + end + end