From 4f4f85ded27def48936f988b7ff0636ebd74f6ba Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Fri, 5 Jun 2020 18:20:56 +0200 Subject: [PATCH] add test case --- test/runtests.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/runtests.jl b/test/runtests.jl index 8c1e65f..983ed3a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,6 +6,7 @@ using LinearAlgebra @testset "Linesearch" for (fg, x₀) in [(x->(sin(x) + x^4, cos(x) + 4*x^3), 0.), (x->(x^2, 2*x), 1.), (x->(exp(x)-x^3, exp(x)-3*x^2), 3.9), # should trigger bisection + (x->(exp(x)-x^3, exp(x)-3*x^2), 2), # should trigger infinities (x->(sum(x.^2), 2*x), [1.,2.]), (x->(2*x[1]^2 + x[2]^4 - x[3]^2 + x[3]^4, [4*x[1], 4*x[2]^3, -2*x[3]+4*x[3]^3]), [1.,2.,3.])] f₀, g₀ = fg(x₀)