# Test automatic differentiation
@testset "autodiff" begin
function f!(fvec, x)
    fvec[1] = (x[1]+3)*(x[2]^3-7)+18
    fvec[2] = sin(x[2]*exp(x[1])-1)
end

r = nlsolve(f!, [ -0.5; 1.4], autodiff = true)
@test converged(r)
@test norm(r.zero - [ 0; 1]) < 1e-8

end
