comparison test/Grids/grid_test.jl @ 1332:ad31c1022e42 refactor/grids

Rename function for coordinate size of a grid
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 03 May 2023 15:31:53 +0200
parents 0713175a5743
children 79a2193da5c1
comparison
equal deleted inserted replaced
1331:ed3ea0630825 1332:ad31c1022e42
9 @test eltype(DummyGrid{Int, 2}) == Int 9 @test eltype(DummyGrid{Int, 2}) == Int
10 @test eltype(DummyGrid{Int, 2}()) == Int 10 @test eltype(DummyGrid{Int, 2}()) == Int
11 11
12 @test ndims(DummyGrid{Int, 2}()) == 2 12 @test ndims(DummyGrid{Int, 2}()) == 2
13 13
14 @test target_manifold_dim(DummyGrid{Int, 1}()) == 1 14 @test coordinate_size(DummyGrid{Int, 1}()) == 1
15 @test target_manifold_dim(DummyGrid{SVector{3,Float64}, 2}()) == 3 15 @test coordinate_size(DummyGrid{SVector{3,Float64}, 2}()) == 3
16 16
17 @testset "component_type" begin 17 @testset "component_type" begin
18 @test component_type(DummyGrid{Int,1}()) == Int 18 @test component_type(DummyGrid{Int,1}()) == Int
19 @test component_type(DummyGrid{Float64,1}()) == Float64 19 @test component_type(DummyGrid{Float64,1}()) == Float64
20 @test component_type(DummyGrid{Rational,1}()) == Rational 20 @test component_type(DummyGrid{Rational,1}()) == Rational