Skip to content

Commit 5be2783

Browse files
committed
More lenient tests
1 parent 894c7cc commit 5be2783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_basics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ end
102102
for f in MATRIX_FUNCTIONS
103103
@eval begin
104104
fa = $f($a)
105-
@test collect(fa) $f(collect($a)) rtol = (eps(eltype($a)))
105+
@test collect(fa) $f(collect($a)) rtol = (eps(real(eltype($a))))
106106
@test fa.a isa Eye
107107
end
108108
end
@@ -122,7 +122,7 @@ end
122122
for f in MATRIX_FUNCTIONS
123123
@eval begin
124124
fa = $f($a)
125-
@test collect(fa) $f(collect($a)) rtol = (eps(eltype($a)))
125+
@test collect(fa) $f(collect($a)) rtol = (eps(real(eltype($a))))
126126
@test fa.b isa Eye
127127
end
128128
end

0 commit comments

Comments
 (0)