We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca5de0 commit b2e5e85Copy full SHA for b2e5e85
src/test.jl
@@ -12,7 +12,7 @@ All keyword arguments are passed to `isapprox`.
12
function test_inverse(f, x; kwargs...)
13
@testset "test_inverse: $f with input $x" begin
14
inverse_f = inverse(f)
15
- @test isapprox(inverse_f(f(x)), x; kwargs...)
+ @test (x2 = inverse_f(f(x)); x2 == x || isapprox(inverse_f(f(x)), x; kwargs...))
16
@test inverse(inverse_f) === f
17
end
18
return nothing
0 commit comments