Skip to content

Commit b44c0d5

Browse files
committed
try make linalg tests pass
1 parent 0ece216 commit b44c0d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/LinearAlgebra/test/dense.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ end
324324
@test norm*A,Inf) abs(α)*norm(A,Inf)
325325

326326
# Triangle inequality
327-
@test norm(A + B,1) <= norm(A,1) + norm(B,1)
327+
normAplusB = norm(A + B,1)
328+
normAplusNormB = norm(A,1) + norm(B,1)
329+
@test normAplusB <= normAplusNormB || normAplusB normAplusNormB
328330
elty <: Union{BigFloat,Complex{BigFloat},BigInt} || @test norm(A + B) <= norm(A) + norm(B) # two is default
329331
@test norm(A + B,Inf) <= norm(A,Inf) + norm(B,Inf)
330332

0 commit comments

Comments
 (0)