@@ -185,19 +185,21 @@ using StaticArrays, Test, LinearAlgebra
185
185
@test @inferred (convert (AbstractArray{Float64}, diag)) isa Diagonal{Float64,SVector{2 ,Float64}}
186
186
@test convert (AbstractArray{Float64}, diag) == diag
187
187
# The following cases currently convert the SMatrix into an MMatrix, because
188
- # the constructor in Base invokes `similar`, rather than `convert`, on the static array
188
+ # the constructor in Base invokes `similar`, rather than `convert`, on the static
189
+ # array. This was fixed in https://github.com/JuliaLang/julia/pull/40831; so should
190
+ # work from Julia v1.8.0-DEV.55
189
191
trans = Transpose (SVector (1 ,2 ))
190
- @test_broken @inferred (convert (AbstractArray{Float64}, trans)) isa Transpose{Float64,SVector{2 ,Float64}}
192
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, trans)) isa Transpose{Float64,SVector{2 ,Float64}}
191
193
adj = Adjoint (SVector (1 ,2 ))
192
- @test_broken @inferred (convert (AbstractArray{Float64}, adj)) isa Adjoint{Float64,SVector{2 ,Float64}}
194
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, adj)) isa Adjoint{Float64,SVector{2 ,Float64}}
193
195
uptri = UpperTriangular (SA[1 2 ; 0 3 ])
194
- @test_broken @inferred (convert (AbstractArray{Float64}, uptri)) isa UpperTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
196
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, uptri)) isa UpperTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
195
197
lotri = LowerTriangular (SA[1 0 ; 2 3 ])
196
- @test_broken @inferred (convert (AbstractArray{Float64}, lotri)) isa LowerTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
198
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, lotri)) isa LowerTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
197
199
unituptri = UnitUpperTriangular (SA[1 2 ; 0 1 ])
198
- @test_broken @inferred (convert (AbstractArray{Float64}, unituptri)) isa UnitUpperTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
200
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, unituptri)) isa UnitUpperTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
199
201
unitlotri = UnitLowerTriangular (SA[1 0 ; 2 1 ])
200
- @test_broken @inferred (convert (AbstractArray{Float64}, unitlotri)) isa UnitLowerTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
202
+ @test_was_once_broken v " 1.8.0-DEV.55 " @inferred (convert (AbstractArray{Float64}, unitlotri)) isa UnitLowerTriangular{Float64,SMatrix{2 ,2 ,Float64,4 }}
201
203
end
202
204
end
203
205
0 commit comments