Mercurial > repos > public > sbplib_julia
comparison 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 |
comparison
equal
deleted
inserted
replaced
1568:90af15f38c62 | 1569:473cf7677e0f |
---|---|
181 @test mg isa MappedGrid{SVector{2,Float64}, 2} | 181 @test mg isa MappedGrid{SVector{2,Float64}, 2} |
182 | 182 |
183 lg = equidistant_grid((10,11), (0,0), (1,1)) | 183 lg = equidistant_grid((10,11), (0,0), (1,1)) |
184 @test logicalgrid(mg) == lg | 184 @test logicalgrid(mg) == lg |
185 @test collect(mg) == map(x̄, lg) | 185 @test collect(mg) == map(x̄, lg) |
186 | |
187 | |
188 @testset "mapped_grid(::Chart,J)" begin | |
189 c = ConcreteChart(unitsquare()) do (x,y) | |
190 @SVector[2x, 3y] | |
191 end | |
192 | |
193 @test mapped_grid(c, 5, 4) | |
194 end | |
195 | |
186 end | 196 end |