Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Sep 30, 2023
1 parent 9832be8 commit bc14500
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ The function tests (as a `Test.@testset`) if
"""
function test_inverse(f, x; compare=isapprox, kwargs...)
@testset "test_inverse: $f with input $x" begin
y = f(x)
inverse_f = inverse(f)
@test compare(inverse_f(y), x; kwargs...)
y = @show f(x)
inverse_f = @show inverse(f)
@test compare(@show(inverse_f(y)), x; kwargs...)
inverse_inverse_f = inverse(inverse_f)
@test compare(inverse_inverse_f(x), y; kwargs...)
end
Expand Down

0 comments on commit bc14500

Please sign in to comment.