Skip to content

Commit 382a1ee

Browse files
committed
Use GenericArray instead of adjoint to ensure fallback method is hit
1 parent 5a19a05 commit 382a1ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/triangular.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ isdefined(Main, :pruned_old_LA) || @eval Main include("prune_old_LA.jl")
66

77
using Test, LinearAlgebra, Random
88
using LinearAlgebra: errorbounds, transpose!, BandIndex
9+
using Test: GenericArray
910

1011
const BASE_TEST_PATH = joinpath(Sys.BINDIR, "..", "share", "julia", "test")
1112

@@ -655,8 +656,8 @@ end
655656
for T in (UnitUpperTriangular, UnitLowerTriangular)
656657
isupper = T == UnitUpperTriangular
657658
M = Matrix{BigFloat}(undef, 2, 2)
658-
M[1+isupper,1+!isupper] = 3
659-
U = T(M')
659+
M[1+!isupper,1+isupper] = 3
660+
U = T(GenericArray(M))
660661
@test copyto!(similar(M), U) == U
661662
end
662663
end

0 commit comments

Comments
 (0)