Skip to content

Commit 7462b07

Browse files
committed
Fix JET tests
1 parent a5d4b8e commit 7462b07

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/trim/clean_optimization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ function minimize(x)
3434
end
3535

3636
@test successful_retcode(minimize(1.0).retcode)
37-
@test_opt minimize(1.0) broken=true
37+
@test_opt minimize(1.0)

test/trim/trimmable_optimization.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using NonlinearSolveFirstOrder
22
using ADTypes: AutoForwardDiff
3+
using DiffEqBase
34
using ForwardDiff
45
using LinearAlgebra
56
using StaticArrays
@@ -23,6 +24,7 @@ struct MyParams{T, M}
2324
λ::T
2425
Σ::M
2526
end
27+
DiffEqBase.anyeltypedual(::MyParams) = Any
2628

2729
const autodiff = AutoForwardDiff(; chunksize = 1)
2830
const alg = TrustRegion(; autodiff, linsolve = LS.CholeskyFactorization())

0 commit comments

Comments
 (0)