Skip to content

Commit 973d041

Browse files
committed
Fix local var warnings
1 parent 4119a8e commit 973d041

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/runtests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ end
2323
f, u0 = (u,p) -> u .* u .- 2, @SVector[1.0, 1.0]
2424
sf, su0 = (u,p) -> u * u - 2, 1.0
2525
sol = benchmark_immutable(f, u0)
26-
@test sol.retcode === NonlinearSolve.DEFAULT
26+
@test sol.retcode === Symbol(NonlinearSolve.DEFAULT)
2727
@test all(sol.u .* sol.u .- 2 .< 1e-9)
2828
sol = benchmark_mutable(f, u0)
29-
@test sol.retcode === NonlinearSolve.DEFAULT
29+
@test sol.retcode === Symbol(NonlinearSolve.DEFAULT)
3030
@test all(sol.u .* sol.u .- 2 .< 1e-9)
3131
sol = benchmark_scalar(sf, su0)
32-
@test sol.retcode === NonlinearSolve.DEFAULT
32+
@test sol.retcode === Symbol(NonlinearSolve.DEFAULT)
3333
@test sol.u * sol.u - 2 < 1e-9
3434

3535
@test (@ballocated benchmark_immutable($f, $u0)) == 0
@@ -117,6 +117,7 @@ probN = NonlinearProblem(f, u0)
117117
@test solve(probN, NewtonRaphson(;autodiff=false); immutable = false).u[end] sqrt(2.0)
118118

119119
for u0 in [1.0, [1, 1.0]]
120+
local f, probN, sol
120121
f = (u, p) -> u .* u .- 2.0
121122
probN = NonlinearProblem(f, u0)
122123
sol = sqrt(2) * u0

0 commit comments

Comments
 (0)