Mercurial > repos > public > sbplib_julia
diff test/testLazyTensors.jl @ 456:8f4c31e06689 feature/inflated_tensormapping
Add docs and tests for slice_tuple
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 21 Oct 2020 19:53:36 +0200 |
parents | b86312d14873 |
children | 8fb6a5611c7a |
line wrap: on
line diff
--- a/test/testLazyTensors.jl Wed Oct 21 16:29:59 2020 +0200 +++ b/test/testLazyTensors.jl Wed Oct 21 19:53:36 2020 +0200 @@ -351,4 +351,11 @@ end +@testset "slice_tuple" begin + @test LazyTensors.slice_tuple((1,2,3),Val(1), Val(3)) == (1,2,3) + @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(2), Val(5)) == (2,3,4,5) + @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(1), Val(3)) == (1,2,3) + @test LazyTensors.slice_tuple((1,2,3,4,5,6),Val(4), Val(6)) == (4,5,6) end + +end