|
45 | 45 | @testset "2x2 StaticMatrix with 1x2 StaticMatrix" begin
|
46 | 46 | m1 = @SMatrix [1 2; 3 4]
|
47 | 47 | m2 = @SMatrix [1 4]
|
48 |
| - @test_broken @inferred(broadcast(+, m1, m2)) === @SMatrix [2 6; 4 8] #197 |
49 |
| - @test_broken @inferred(m1 .+ m2) === @SMatrix [2 6; 4 8] #197 |
| 48 | + @test @inferred(broadcast(+, m1, m2)) === @SMatrix [2 6; 4 8] #197 |
| 49 | + @test @inferred(m1 .+ m2) === @SMatrix [2 6; 4 8] #197 |
50 | 50 | @test @inferred(m2 .+ m1) === @SMatrix [2 6; 4 8]
|
51 |
| - @test_broken @inferred(m1 .* m2) === @SMatrix [1 8; 3 16] #197 |
| 51 | + @test @inferred(m1 .* m2) === @SMatrix [1 8; 3 16] #197 |
52 | 52 | @test @inferred(m2 .* m1) === @SMatrix [1 8; 3 16]
|
53 |
| - @test_broken @inferred(m1 ./ m2) === @SMatrix [1 1/2; 3 1] #197 |
| 53 | + @test @inferred(m1 ./ m2) === @SMatrix [1 1/2; 3 1] #197 |
54 | 54 | @test @inferred(m2 ./ m1) === @SMatrix [1 2; 1/3 1]
|
55 |
| - @test_broken @inferred(m1 .- m2) === @SMatrix [0 -2; 2 0] #197 |
| 55 | + @test @inferred(m1 .- m2) === @SMatrix [0 -2; 2 0] #197 |
56 | 56 | @test @inferred(m2 .- m1) === @SMatrix [0 2; -2 0]
|
57 |
| - @test_broken @inferred(m1 .^ m2) === @SMatrix [1 16; 1 256] #197 |
| 57 | + @test @inferred(m1 .^ m2) === @SMatrix [1 16; 3 256] #197 |
58 | 58 | end
|
59 | 59 |
|
60 | 60 | @testset "1x2 StaticMatrix with StaticVector" begin
|
61 | 61 | m = @SMatrix [1 2]
|
62 | 62 | v = SVector(1, 4)
|
63 | 63 | @test @inferred(broadcast(+, m, v)) === @SMatrix [2 3; 5 6]
|
64 | 64 | @test @inferred(m .+ v) === @SMatrix [2 3; 5 6]
|
65 |
| - @test_broken @inferred(v .+ m) === @SMatrix [2 3; 5 6] #197 |
| 65 | + @test @inferred(v .+ m) === @SMatrix [2 3; 5 6] #197 |
66 | 66 | @test @inferred(m .* v) === @SMatrix [1 2; 4 8]
|
67 |
| - @test_broken @inferred(v .* m) === @SMatrix [1 2; 4 8] #197 |
| 67 | + @test @inferred(v .* m) === @SMatrix [1 2; 4 8] #197 |
68 | 68 | @test @inferred(m ./ v) === @SMatrix [1 2; 1/4 1/2]
|
69 |
| - @test_broken @inferred(v ./ m) === @SMatrix [1 1/2; 4 2] #197 |
| 69 | + @test @inferred(v ./ m) === @SMatrix [1 1/2; 4 2] #197 |
70 | 70 | @test @inferred(m .- v) === @SMatrix [0 1; -3 -2]
|
71 |
| - @test_broken @inferred(v .- m) === @SMatrix [0 -1; 3 2] #197 |
| 71 | + @test @inferred(v .- m) === @SMatrix [0 -1; 3 2] #197 |
72 | 72 | @test @inferred(m .^ v) === @SMatrix [1 2; 1 16]
|
73 |
| - @test_broken @inferred(v .^ m) === @SMatrix [1 1; 4 16] #197 |
| 73 | + @test @inferred(v .^ m) === @SMatrix [1 1; 4 16] #197 |
74 | 74 | end
|
75 | 75 |
|
76 | 76 | @testset "StaticVector with StaticVector" begin
|
|
89 | 89 | @test @inferred(v2 .^ v1) === SVector(1, 16)
|
90 | 90 | # test case issue #199
|
91 | 91 | @test @inferred(SVector(1) .+ SVector()) === SVector()
|
92 |
| - @test_broken @inferred(SVector() .+ SVector(1)) === SVector() |
| 92 | + @test @inferred(SVector() .+ SVector(1)) === SVector() |
93 | 93 | # test case issue #200
|
94 |
| - @test_broken @inferred(v1 .+ v2') === @SMatrix [2 5; 3 5] |
| 94 | + @test @inferred(v1 .+ v2') === @SMatrix [2 5; 3 6] |
95 | 95 | end
|
96 | 96 |
|
97 | 97 | @testset "StaticVector with Scalar" begin
|
|
0 commit comments