Skip to content

Commit e022e2c

Browse files
committed
Add relative tolerance to power test
1 parent 3ebc113 commit e022e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ LinearAlgebra.istril(N::NotDiagonal) = istril(N.a)
240240
if elty <: Real
241241
@test Array(abs.(D)^a) abs.(DM)^a
242242
else
243-
@test Array(D^a) DM^a
243+
@test Array(D^a) DM^a rtol=max(eps(relty), 1e-15) # TODO: improve precision
244244
end
245245
@test Diagonal(1:100)^2 == Diagonal((1:100).^2)
246246
p = 3

0 commit comments

Comments
 (0)