Skip to content

Commit a3bc1ab

Browse files
fixup! test: add tests for all roots solve
1 parent e437b0b commit a3bc1ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/NonlinearSolveHomotopyContinuation/test/allroots.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ function f(u, p)
7373
end
7474

7575
@testset "vector u - $iip" for (rhs, iip) in [(f, "oop"), (f!, "iip")]
76+
sol = nothing
7677
@testset "`NonlinearProblem`" begin
7778
prob = NonlinearProblem(rhs, [1.0, 2.0], [2.0, 3.0])
7879
sol = solve(prob, alg)
@@ -108,7 +109,6 @@ end
108109
@test sol2 isa EnsembleSolution
109110
@test sol2.converged
110111
@test length(sol.u) == length(sol2.u)
111-
display(sol.u)
112112
for nlsol2 in sol2.u
113113
@test any(nlsol -> isapprox(polynomialize(nlsol2.u, prob.p), nlsol.u; rtol = 1e-8), sol.u)
114114
end

0 commit comments

Comments
 (0)