Skip to content

Commit 59de357

Browse files
committed
More lenient tests
1 parent 6be24a6 commit 59de357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_factorizations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using Test: @inferred, @test, @test_throws, @testset
4444
for f in MATRIX_FUNCTIONS
4545
@eval begin
4646
fa = $f($a)
47-
@test Matrix(fa) $f(Matrix($a))
47+
@test Matrix(fa) $f(Matrix($a)) rtol = (eps(real($elt)))
4848
@test fa isa BlockSparseMatrix
4949
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
5050
end
@@ -76,7 +76,7 @@ using Test: @inferred, @test, @test_throws, @testset
7676
for f in MATRIX_FUNCTIONS
7777
@eval begin
7878
fa = $f($a)
79-
@test Matrix(fa) $f(Matrix($a))
79+
@test Matrix(fa) $f(Matrix($a)) rtol = (eps(real($elt)))
8080
@test fa isa BlockSparseMatrix
8181
@test issetequal(eachblockstoredindex(fa), [Block(1, 1), Block(2, 2)])
8282
end

0 commit comments

Comments
 (0)