Skip to content

Commit e3ea547

Browse files
committed
Add a test
1 parent a93ddc4 commit e3ea547

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

test/downstream/mtk_cache_indexing_tests.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
nlprob = NonlinearProblem(nlsys, [X => 1.0], [p => 2.0, d => 3.0])
1212

1313
@testset "$integtype" for (alg, integtype) in [
14-
(NewtonRaphson(), NonlinearSolve.GeneralizedFirstOrderAlgorithmCache),
15-
(FastShortcutNonlinearPolyalg(), NonlinearSolve.NonlinearSolvePolyAlgorithmCache),
16-
(SimpleNewtonRaphson(), NonlinearSolve.NonlinearSolveNoInitCache),
17-
]
14+
(NewtonRaphson(), NonlinearSolve.GeneralizedFirstOrderAlgorithmCache),
15+
(FastShortcutNonlinearPolyalg(), NonlinearSolve.NonlinearSolvePolyAlgorithmCache),
16+
(SimpleNewtonRaphson(), NonlinearSolve.NonlinearSolveNoInitCache)]
1817
nint = init(nlprob, alg)
1918
@test nint isa integtype
2019

test/misc/other_tests.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@testitem "No warning tests" tags=[:misc] begin
2+
using NonlinearSolve
3+
4+
f(u, p) = u .* u .- p
5+
u0 = [1.0, 1.0]
6+
p = 2.0
7+
prob = NonlinearProblem(f, u0, p)
8+
@test_nowarn solve(
9+
prob, NewtonRaphson(autodiff = AutoFiniteDiff(), linesearch = LineSearchesJL()))
10+
end

0 commit comments

Comments
 (0)