Mercurial > repos > public > sbplib_julia
diff test/testLazyTensors.jl @ 495:6dc6b1475563
Merge feature/tensormapping_eltype
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Nov 2020 13:20:20 +0100 |
parents | cd509e57f898 |
children | f906f207571c |
line wrap: on
line diff
--- a/test/testLazyTensors.jl Thu Nov 05 11:46:03 2020 +0100 +++ b/test/testLazyTensors.jl Thu Nov 05 13:20:20 2020 +0100 @@ -12,6 +12,8 @@ @test range_dim(DummyMapping{Int,2,3}()) == 2 @test domain_dim(DummyMapping{Int,2,3}()) == 3 @test apply(DummyMapping{Int,2,3}(), zeros(Int, (0,0,0)),(Index{Unknown}(0),Index{Unknown}(0))) == :apply + @test eltype(DummyMapping{Int,2,3}()) == Int + @test eltype(DummyMapping{Float64,2,3}()) == Float64 end @testset "Mapping transpose" begin