Skip to content

Commit 683cab1

Browse files
committed
Fix tests on Julia v1.0
exp(log(A::AbstractMatrix)) ≈ A is broken on v1.0
1 parent 111325e commit 683cab1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_inverse.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ InverseFunctions.inverse(f::Bar) = Bar(inv(f.A))
6565
Base.Fix2(/, rand()), Base.Fix1(/, rand(5, 5)), Base.Fix2(/, rand(5, 5)),
6666
Base.Fix1(\, rand()), Base.Fix1(\, rand(5, 5)), Base.Fix2(\, rand(5, 5)),
6767
)
68-
InverseFunctions.test_inverse(f, A)
68+
if f != log || VERSION >= v"1.6"
69+
# exp(log(A::AbstractMatrix)) ≈ A is broken on at least Julia v1.0
70+
InverseFunctions.test_inverse(f, A)
71+
end
6972
end
7073

7174
X = rand(5)

0 commit comments

Comments
 (0)