Skip to content

Commit cf9c494

Browse files
jishnubKristofferC
authored andcommitted
Convert triangular inv test comparison to isapprox (#55609)
The failing test was noticed in #55607. The comparison will only hold approximately in general, as the inverses are computed differently.
1 parent 0776d5e commit cf9c494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/test/triangular.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ end
903903
function test_one_oneunit_triangular(a)
904904
b = Matrix(a)
905905
@test (@inferred a^1) == b^1
906-
@test (@inferred a^-1) == b^-1
906+
@test (@inferred a^-1) b^-1
907907
@test one(a) == one(b)
908908
@test one(a)*a == a
909909
@test a*one(a) == a

0 commit comments

Comments
 (0)