Mercurial > repos > public > sbplib_julia
diff test/testLazyTensors.jl @ 417:4c6604b7d990 feature/tensor_composition
Add dimension checking in the constructor
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 16 Oct 2020 20:32:09 +0200 |
parents | ebc9b2383dae |
children | 98ba9b7effd3 |
line wrap: on
line diff
--- a/test/testLazyTensors.jl Fri Oct 16 09:37:35 2020 +0200 +++ b/test/testLazyTensors.jl Fri Oct 16 20:32:09 2020 +0200 @@ -223,7 +223,9 @@ @test Ã∘B̃ isa TensorMappingComposition @test range_size(Ã∘B̃) == (2,) @test domain_size(Ã∘B̃) == (4,) - # @test_throws DimensionMismatch B̃∘Ã + @test_throws DimensionMismatch B̃∘Ã + + # @test @inbounds B̃∘Ã # Should not error even though dimensions don't match. (Since ]test runs with forced boundschecking this is currently not testable 2020-10-16) v = rand(4) @test Ã∘B̃*v ≈ A*B*v