Skip to content

Commit c8d287f

Browse files
Merge pull request #229 from SciML/ChrisRackauckas-patch-3
Fix downstream tests
2 parents 0be2407 + fa5b2e3 commit c8d287f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/interface/ad.jl

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ h(p, t) = p[4]
3333
# with discontinuity and without delay length estimation
3434
p = [1.5, 1.0, 0.5, 1.0]
3535
findiff3 = FiniteDiff.finite_difference_gradient(p -> test(vcat(1, p)), p)
36-
fordiff3 = @test_logs (:warn, r"^dt <= dtmin") ForwardDiff.gradient(p -> test(vcat(1, p)),
37-
p)
38-
@test_broken maximum(abs.(findiff3 .- fordiff3)) < 9
36+
fordiff3 = ForwardDiff.gradient(p -> test(vcat(1, p)),p)
37+
@test maximum(abs.(findiff3 .- fordiff3)) < 9
3938

4039
# consistency checks
4140
@test findiff2[2:end] findiff
@@ -68,9 +67,8 @@ end
6867
# with discontinuity and without delay length estimation
6968
p = [1.5, 1.0, 0.5, 1.0]
7069
findiff3 = FiniteDiff.finite_difference_jacobian(p -> test(vcat(1, p)), p)
71-
fordiff3 = @test_logs (:warn, r"^dt <= dtmin") ForwardDiff.jacobian(p -> test(vcat(1, p)),
72-
p)
73-
@test_broken maximum(abs.(findiff3 .- fordiff3)) < 1
70+
fordiff3 = ForwardDiff.jacobian(p -> test(vcat(1, p)),p)
71+
@test maximum(abs.(findiff3 .- fordiff3)) < 1
7472

7573
# consistency checks
7674
@test findiff2[:, 2:end] findiff
@@ -103,9 +101,8 @@ end
103101
# with discontinuity and without delay length estimation
104102
p = [1.5, 1.0, 0.5, 1.0]
105103
findiff3 = FiniteDiff.finite_difference_hessian(p -> test(vcat(1, p)), p)
106-
fordiff3 = @test_logs (:warn, r"^dt <= dtmin") ForwardDiff.hessian(p -> test(vcat(1, p)),
107-
p)
108-
@test_broken maximum(abs.(findiff3 .- fordiff3)) < 1
104+
fordiff3 = ForwardDiff.hessian(p -> test(vcat(1, p)),p)
105+
@test maximum(abs.(findiff3 .- fordiff3)) < 1
109106

110107
# consistency checks
111108
@test findiff2[2:end, 2:end] findiff

0 commit comments

Comments
 (0)