Skip to content

Commit

Permalink
Remove some @test_broken
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Oct 10, 2024
1 parent eb865b2 commit 594c3f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/interval_tests/forwarddiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ end
(t) = ForwardDiff.derivative(ψ, t)
ddψ(t) = ForwardDiff.derivative(dψ, t)
dddψ(t) = ForwardDiff.derivative(ddψ, t)
@test ψ′(0) === (0) && !isguaranteed(ψ′(0))
@test_broken ψ′′(0) === ddψ(0) && !isguaranteed(ψ′′(0)) # rely on `Interval{T}(::Real)` being defined
@test_broken ψ′′′(0) === dddψ(0) && !isguaranteed(ψ′′′(0)) # rely on `Interval{T}(::Real)` being defined
@test ψ′(0) === (0) && !isguaranteed(ψ′(0))
@test ψ′′(0) === ddψ(0) && !isguaranteed(ψ′′(0))
@test ψ′′′(0) === dddψ(0) && !isguaranteed(ψ′′′(0))
t₀ = interval(0)
@test ψ′(t₀) === (t₀) && isguaranteed(ψ′(t₀))
@test ψ′′(t₀) === ddψ(t₀) && isguaranteed(ψ′′(t₀))
Expand All @@ -73,14 +73,14 @@ end
@test isguaranteed(dfdy)
@test isguaranteed(grad[1])
@test isguaranteed(grad[2])

if iszero(x) && y < 0
@test decoration(dfdx) == trv
else
@test in_interval(ForwardDiff.derivative(fx, x), dfdx)
end

if iszero(x) && y <= 0
if iszero(x) && y <= 0
@test decoration(dfdy) == trv
else
@test in_interval(ForwardDiff.derivative(fy, y), dfdy)
Expand All @@ -104,4 +104,4 @@ end
@exact g(x) = 2^x + 6sin(x^3) - 33
@test isguaranteed(ForwardDiff.derivative(f, interval(1)))
end
end
end

0 comments on commit 594c3f1

Please sign in to comment.