Skip to content

Commit 3938441

Browse files
fix a typo from tests
1 parent 59eae13 commit 3938441

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/initializationsystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ tspan = (0.0, 100.0)
339339
using ModelingToolkit, OrdinaryDiffEq, Test
340340
using ModelingToolkit: t_nounits as t, D_nounits as D
341341

342-
function System(; name)
342+
function System2(; name)
343343
vars = @variables begin
344344
dx(t), [guess = 0]
345345
ddx(t), [guess = 0]
@@ -349,7 +349,7 @@ function System(; name)
349349
return ODESystem(eqs, t, vars, []; name)
350350
end
351351

352-
@mtkbuild sys = System()
352+
@mtkbuild sys = System2()
353353
prob = ODEProblem(sys, [sys.dx => 1], (0, 1)) # OK
354354
prob = ODEProblem(sys, [sys.ddx => -2], (0, 1), guesses = [sys.dx => 1])
355355
sol = solve(prob, Tsit5())
@@ -358,7 +358,7 @@ sol = solve(prob, Tsit5())
358358

359359
## Late binding initialization_eqs
360360

361-
function System2(; name)
361+
function System3(; name)
362362
vars = @variables begin
363363
dx(t), [guess = 0]
364364
ddx(t), [guess = 0]
@@ -371,7 +371,7 @@ function System2(; name)
371371
return ODESystem(eqs, t, vars, []; name, initialization_eqs)
372372
end
373373

374-
@mtkbuild sys = System2()
374+
@mtkbuild sys = System3()
375375
prob = ODEProblem(sys, [], (0, 1), guesses = [sys.dx => 1])
376376
sol = solve(prob, Tsit5())
377377
@test SciMLBase.successful_retcode(sol)

0 commit comments

Comments
 (0)