Skip to content

Commit 2d75a19

Browse files
mcognettadgleich
authored andcommitted
Update diagonal.jl
making a test case use `isapprox` instead of `==`.
1 parent 4d1a211 commit 2d75a19

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
@@ -1468,7 +1468,7 @@ end
14681468
D = Diagonal([[1 2; 3 4], [5 6; 7 8]])
14691469
A = [1 2 0 0; 3 4 0 0; 0 0 5 6; 0 0 7 8] # full matrix of D
14701470
@test opnorm(D, 1) == opnorm(A, 1)
1471-
@test opnorm(D, 2) == opnorm(A, 2)
1471+
@test opnorm(D, 2) opnorm(A, 2)
14721472
@test opnorm(D, Inf) == opnorm(A, Inf)
14731473
end
14741474

0 commit comments

Comments
 (0)