Mercurial > repos > public > sbplib_julia
comparison test/testLazyTensors.jl @ 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 | 4aa59af074ef |
| children | cffdac9c612d |
comparison
equal
deleted
inserted
replaced
| 414:f4c51b0350ba | 420:3796e296fe64 |
|---|---|
| 56 @test (m*m*v)[3] == (:apply,m*v,(Index{Unknown}(3),)) | 56 @test (m*m*v)[3] == (:apply,m*v,(Index{Unknown}(3),)) |
| 57 @test (m*m*v)[Index{Lower}(6)] == (:apply,m*v,(Index{Lower}(6),)) | 57 @test (m*m*v)[Index{Lower}(6)] == (:apply,m*v,(Index{Lower}(6),)) |
| 58 @test (m*m*v)[6] == (:apply,m*v,(Index{Unknown}(6),)) | 58 @test (m*m*v)[6] == (:apply,m*v,(Index{Unknown}(6),)) |
| 59 @test_broken BoundsError == (m*m*v)[0] | 59 @test_broken BoundsError == (m*m*v)[0] |
| 60 @test_broken BoundsError == (m*m*v)[7] | 60 @test_broken BoundsError == (m*m*v)[7] |
| 61 @test_throws MethodError m*m | |
| 61 | 62 |
| 62 m = SizeDoublingMapping{Int, 2, 1}((3,)) | 63 m = SizeDoublingMapping{Int, 2, 1}((3,)) |
| 63 @test_throws MethodError m*ones(Int,2,2) | 64 @test_throws MethodError m*ones(Int,2,2) |
| 64 @test_throws MethodError m*m*v | 65 @test_throws MethodError m*m*v |
| 65 | 66 |
