diff test/Grids/mapped_grid_test.jl @ 1842:f2b32da29b73 feature/grids/manifolds

Introduce mapped_grid for ParameterSpace and simplify implementation of equidistant_grid(::Chart)
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Oct 2024 15:32:33 +0200
parents 2b5f81e288f1
children 81559cb7b11c
line wrap: on
line diff
--- a/test/Grids/mapped_grid_test.jl	Tue Oct 22 08:50:23 2024 +0200
+++ b/test/Grids/mapped_grid_test.jl	Tue Oct 22 15:32:33 2024 +0200
@@ -278,11 +278,13 @@
     mg = mapped_grid(x̄, J, 10, 11)
     @test mg isa MappedGrid{SVector{2,Float64}, 2}
 
-    lg = equidistant_grid((0,0), (1,1), 10, 11)
+    lg = equidistant_grid(unitsquare(), 10, 11)
     @test logical_grid(mg) == lg
     @test collect(mg) == map(x̄, lg)
 
     @test mapped_grid(lg, x̄, J) == mg
+
+    @test mapped_grid(x̄, J, unitsquare(), 10, 11) == mg
 end
 
 @testset "metric_tensor" begin