Skip to content

Commit b9a309a

Browse files
test: fix tests
1 parent 4baabca commit b9a309a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/initializationsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sol = solve(initprob)
2828

2929
initprob = ModelingToolkit.InitializationProblem(pend, 0.0, [x => 1, y => 0], [g => 1];
3030
guesses = ModelingToolkit.missing_variable_defaults(pend))
31-
@test initprob isa NonlinearProblem
31+
@test initprob isa NonlinearLeastSquaresProblem
3232
sol = solve(initprob)
3333
@test SciMLBase.successful_retcode(sol)
3434
@test sol.u == [0.0, 0.0, 0.0, 0.0]

test/split_parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ S = get_sensitivity(closed_loop, :u)
206206
BlockedArray([[1 2; 3 4], [2 4; 6 8]], [1, 1])),
207207
# (BlockedArray([[true, false], [false, true]]), BlockedArray([[[1 2; 3 4]], [[2 4; 6 8]]])),
208208
([5, 6],),
209-
(["hi", "bye"], [:lie, :die]))
209+
(["hi", "bye"], [:lie, :die]), ())
210210
@test ps[ParameterIndex(Tunable(), 1)] == 1.0
211211
@test ps[ParameterIndex(Tunable(), 2:4)] == collect(2.0:4.0)
212212
@test ps[ParameterIndex(Tunable(), reshape(4:7, 2, 2))] == reshape(4.0:7.0, 2, 2)

0 commit comments

Comments
 (0)