changeset 420:3796e296fe64 bugfix/tensor_application_multiplication

Add test that triggers bug
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 18 Oct 2020 21:52:56 +0200
parents f4c51b0350ba
children 2808c41f5efa
files test/testLazyTensors.jl
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/testLazyTensors.jl	Fri Oct 16 09:34:06 2020 +0200
+++ b/test/testLazyTensors.jl	Sun Oct 18 21:52:56 2020 +0200
@@ -58,6 +58,7 @@
     @test (m*m*v)[6] == (:apply,m*v,(Index{Unknown}(6),))
     @test_broken BoundsError == (m*m*v)[0]
     @test_broken BoundsError == (m*m*v)[7]
+    @test_throws MethodError m*m
 
     m = SizeDoublingMapping{Int, 2, 1}((3,))
     @test_throws MethodError m*ones(Int,2,2)