diff test/Grids/grid_test.jl @ 1272:3637daad71e8 refactor/grids

Add function target_manifold_dim for Grid
author Jonatan Werpers <jonatan@werpers.com>
date Sat, 25 Feb 2023 22:49:43 +0100
parents dcbac783e4c1
children 7fab13c07412
line wrap: on
line diff
--- a/test/Grids/grid_test.jl	Sat Feb 25 22:49:21 2023 +0100
+++ b/test/Grids/grid_test.jl	Sat Feb 25 22:49:43 2023 +0100
@@ -11,6 +11,9 @@
 
     @test ndims(DummyGrid{Int, 2}()) == 2
     @test dims(DummyGrid{Int, 2}()) == 1:2
+
+    @test target_manifold_dim(DummyGrid{Int, 1}()) == 1
+    @test target_manifold_dim(DummyGrid{SVector{3,Float64}, 2}()) == 3
 end
 
 @testset "eval_on" begin