Files
ports/lang/julia/files/patch-stdlib_LinearAlgebra_test_lu.jl
2026-10-04 04:07:15 +00:00

18 lines
570 B
Julia
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--- stdlib/LinearAlgebra/test/lu.jl.orig 2024-08-27 21:19:31 UTC
+++ stdlib/LinearAlgebra/test/lu.jl
@@ -296,12 +296,13 @@ end
@test_throws DomainError logdet([1 1; 1 -1])
end
+# lu wants for info BlasInt not Int.
@testset "REPL printing" begin
bf = IOBuffer()
show(bf, "text/plain", lu(Matrix(I, 4, 4)))
seekstart(bf)
@test String(take!(bf)) == """
-LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{$Int}}
+LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{$BlasInt}}
L factor:
4×4 Matrix{Float64}:
1.0 0.0 0.0 0.0