Mercurial > repos > public > sbplib_julia
diff test/Grids/grid_test.jl @ 1289:3b7ebd135918 refactor/grids
Remove _component_type and replace with eltype
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 03 Mar 2023 15:44:39 +0100 |
parents | 7de1df0aad6a |
children | 356ec6a72974 |
line wrap: on
line diff
--- a/test/Grids/grid_test.jl Fri Mar 03 15:42:05 2023 +0100 +++ b/test/Grids/grid_test.jl Fri Mar 03 15:44:39 2023 +0100 @@ -63,13 +63,3 @@ @test Grids._ncomponents(SVector{2,Float64}) == 2 @test Grids._ncomponents(SVector{4,Rational}) == 4 end - -@testset "_component_type" begin - @test Grids._component_type(Int) == Int - @test Grids._component_type(Float64) == Float64 - @test Grids._component_type(Rational) == Rational - - @test Grids._component_type(SVector{3,Int}) == Int - @test Grids._component_type(SVector{2,Float64}) == Float64 - @test Grids._component_type(SVector{4,Rational}) == Rational -end