Mercurial > repos > public > sbplib_julia
diff test/testLazyTensors.jl @ 338:2b0c9b30ea3b refactor/combine_to_one_package
Add test sets for each submodule to make the test output nicer
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Sep 2020 13:48:23 +0200 |
parents | f4e3e71a4ff4 |
children | 7fe43d902a27 |
line wrap: on
line diff
--- a/test/testLazyTensors.jl Fri Sep 25 13:35:26 2020 +0200 +++ b/test/testLazyTensors.jl Fri Sep 25 13:48:23 2020 +0200 @@ -2,6 +2,8 @@ using Sbplib.LazyTensors using Sbplib.RegionIndices +@testset "LazyTensors" begin + @testset "Generic Mapping methods" begin struct DummyMapping{T,R,D} <: TensorMapping{T,R,D} end LazyTensors.apply(m::DummyMapping{T,R,D}, v, i::NTuple{R,Index{<:Region}}) where {T,R,D} = :apply @@ -189,3 +191,5 @@ # Test that size of arrays is asserted when not specified inbounds @test_throws DimensionMismatch v1 + v2 end + +end \ No newline at end of file