From 1833a127820e0319b66ab2aece71ab001349c376 Mon Sep 17 00:00:00 2001 From: Daniel Karrasch Date: Thu, 6 Jun 2019 20:56:25 +0200 Subject: [PATCH] relax some Diagonal tests from #31443 (#32162) --- stdlib/LinearAlgebra/test/diagonal.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/LinearAlgebra/test/diagonal.jl b/stdlib/LinearAlgebra/test/diagonal.jl index 6a1ca14841bf1..4341adfe2ca71 100644 --- a/stdlib/LinearAlgebra/test/diagonal.jl +++ b/stdlib/LinearAlgebra/test/diagonal.jl @@ -491,10 +491,10 @@ end M = randn(T, 5, 5) MM = [randn(T, 2, 2) for _ in 1:2, _ in 1:2] for transform in (identity, adjoint, transpose, Adjoint, Transpose) - @test lmul!(transform(D), copy(M)) == *(transform(Matrix(D)), M) - @test rmul!(copy(M), transform(D)) == *(M, transform(Matrix(D))) - @test lmul!(transform(DD), copy(MM)) == *(transform(fullDD), MM) - @test rmul!(copy(MM), transform(DD)) == *(MM, transform(fullDD)) + @test lmul!(transform(D), copy(M)) ≈ *(transform(Matrix(D)), M) + @test rmul!(copy(M), transform(D)) ≈ *(M, transform(Matrix(D))) + @test lmul!(transform(DD), copy(MM)) ≈ *(transform(fullDD), MM) + @test rmul!(copy(MM), transform(DD)) ≈ *(MM, transform(fullDD)) end end end