Skip to content

Commit d67bb62

Browse files
committed
Update
1 parent dea3a9e commit d67bb62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Nonlinear/ReverseAD.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,11 +1339,11 @@ function test_eval_user_defined_operator_type_mismatch()
13391339
ψ(x) = sin(x)
13401340
t(x, y) = x + 3y
13411341
function ∇t(ret, x, y)
1342-
ret[1] = 1 # These are intentionall the wrong type
1343-
ret[2] = 3 // 1 # These are intentionall the wrong type
1342+
ret[1] = 1 # These are intentionally the wrong type
1343+
ret[2] = 3 // 1 # These are intentionally the wrong type
13441344
return
13451345
end
1346-
MOI.Nonlinear.register_operator(model, , 1, ψ, x -> -cos(x))
1346+
MOI.Nonlinear.register_operator(model, , 1, ψ, cos)
13471347
MOI.Nonlinear.register_operator(model, :t, 2, t, ∇t)
13481348
MOI.Nonlinear.add_constraint(
13491349
model,

0 commit comments

Comments
 (0)