From 9fb707c4ee0aecd17e521cb5ad92b08d06599841 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 9 Sep 2024 17:30:08 +1200 Subject: [PATCH] Remove unneeded test from test_nlp.jl (#3819) --- test/test_nlp.jl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/test_nlp.jl b/test/test_nlp.jl index 324f0370b5e..fbbeea10edc 100644 --- a/test/test_nlp.jl +++ b/test/test_nlp.jl @@ -224,15 +224,6 @@ function test_register_check_forwarddiff_univariate_f() return end -function test_register_check_forwarddiff_univariate_gradf() - model = Model() - f(x) = log(x) - # This is a common case, where user's type their arguments - ∇f(x::Float64) = 1 / x - @test_throws(ErrorException, register(model, :f, 1, f, ∇f; autodiff = true)) - return -end - function test_register_check_forwarddiff_multivariate() model = Model() function f(x...)