Skip to content

Commit 23a5c1a

Browse files
authored
Update diagonal.jl
making a test case use `isapprox` instead of `==`.
1 parent cd966eb commit 23a5c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LinearAlgebra/test/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ end
516516
D = Diagonal([[1 2; 3 4], [5 6; 7 8]])
517517
A = [1 2 0 0; 3 4 0 0; 0 0 5 6; 0 0 7 8] # full matrix of D
518518
@test opnorm(D, 1) == opnorm(A, 1)
519-
@test opnorm(D, 2) == opnorm(A, 2)
519+
@test opnorm(D, 2) opnorm(A, 2)
520520
@test opnorm(D, Inf) == opnorm(A, Inf)
521521
end
522522

0 commit comments

Comments
 (0)