diff --git a/stdlib/LinearAlgebra/test/abstractq.jl b/stdlib/LinearAlgebra/test/abstractq.jl index cb28629424194..b3ef5a1952244 100644 --- a/stdlib/LinearAlgebra/test/abstractq.jl +++ b/stdlib/LinearAlgebra/test/abstractq.jl @@ -56,7 +56,8 @@ n = 5 @test Q[:,1] == Q.Q[:,1] @test Q[1,1] == Q.Q[1,1] @test Q[:] == Q.Q[:] - @test Q[:,1:3] == Q.Q[:,1:3] == Matrix(Q)[:,1:3] + @test Q[:,1:3] == Q.Q[:,1:3] + @test Q[:,1:3] ≈ Matrix(Q)[:,1:3] @test_throws BoundsError Q[0,1] @test_throws BoundsError Q[n+1,1] @test_throws BoundsError Q[1,0]