Skip to content

Commit

Permalink
Use approximate comparison in LinearAlgebra diagonal tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 13, 2020
1 parent 3ed4e94 commit 78d1352
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions stdlib/LinearAlgebra/test/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -471,32 +471,32 @@ end

# Triangular * Diagonal
R = T * D
@test R == Array(T) * Array(D)
@test R Array(T) * Array(D)
@test isa(R, rtype)

# Diagonal * Triangular
R = D * T
@test R == Array(D) * Array(T)
@test R Array(D) * Array(T)
@test isa(R, rtype)

# Adjoint of Triangular * Diagonal
R = T' * D
@test R == Array(T)' * Array(D)
@test R Array(T)' * Array(D)
@test isa(R, adjtype)

# Diagonal * Adjoint of Triangular
R = D * T'
@test R == Array(D) * Array(T)'
@test R Array(D) * Array(T)'
@test isa(R, adjtype)

# Transpose of Triangular * Diagonal
R = transpose(T) * D
@test R == transpose(Array(T)) * Array(D)
@test R transpose(Array(T)) * Array(D)
@test isa(R, adjtype)

# Diagonal * Transpose of Triangular
R = D * transpose(T)
@test R == Array(D) * transpose(Array(T))
@test R Array(D) * transpose(Array(T))
@test isa(R, adjtype)
end
end
Expand Down

0 comments on commit 78d1352

Please sign in to comment.