Skip to content

Commit

Permalink
test: fix SII tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Nov 13, 2024
1 parent d837b1f commit ec79535
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/mtk_cache_indexing_tests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@testitem "Modeling Toolkit Cache Indexing" tags=[:downstream] begin
using ModelingToolkit
using ModelingToolkit: t_nounits as t
import NonlinearSolveBase, NonlinearSolveFirstOrder

@parameters p d
@variables X(t)
Expand All @@ -11,9 +12,9 @@
nlprob = NonlinearProblem(nlsys, [X => 1.0], [p => 2.0, d => 3.0])

@testset "$integtype" for (alg, integtype) in [
(NewtonRaphson(), NonlinearSolve.GeneralizedFirstOrderAlgorithmCache),
(FastShortcutNonlinearPolyalg(), NonlinearSolve.NonlinearSolvePolyAlgorithmCache),
(SimpleNewtonRaphson(), NonlinearSolve.NonlinearSolveNoInitCache)
(NewtonRaphson(), NonlinearSolveFirstOder.GeneralizedFirstOrderAlgorithmCache),

Check warning on line 15 in test/mtk_cache_indexing_tests.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Oder" should be "Order" or "Odor" or "Older".
(FastShortcutNonlinearPolyalg(), NonlinearSolveBase.NonlinearSolvePolyAlgorithmCache),
(SimpleNewtonRaphson(), NonlinearSolveBase.NonlinearSolveNoInitCache)
]
nint = init(nlprob, alg)
@test nint isa integtype
Expand Down

0 comments on commit ec79535

Please sign in to comment.