Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
linearize and split_parameters tests pass now due to uncommitted hack pulling in the correct version of MTK Stdlib
  • Loading branch information
AayushSabharwal committed Dec 4, 2023
1 parent 2697ab0 commit 11ebc18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/linearize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ if VERSION >= v"1.8"
D = Differential(t)

@named link1 = Link(; m = 0.2, l = 10, I = 1, g = -9.807)
@named cart = TranslationalPosition.Mass(; m = 1, s_0 = 0)
@named cart = TranslationalPosition.Mass(; m = 1, s = 0)
@named fixed = Fixed()
@named force = Force(use_support = false)

Expand Down
2 changes: 1 addition & 1 deletion test/split_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ eqs = [y ~ src.output.u
s = complete(sys)
sys = structural_simplify(sys)
prob = ODEProblem(sys, [], (0.0, t_end), [s.src.data => x]; tofloat = false)
@test prob.p isa Tuple{Vector{Int}, Vector{Vector{Float64}}, Vector{Float64}}
@test prob.p isa Tuple{Vector{Float64}, Vector{Int}, Vector{Vector{Float64}}}
sol = solve(prob, ImplicitEuler());
@test sol.retcode == ReturnCode.Success
@test sol[y][end] == x[end]
Expand Down

0 comments on commit 11ebc18

Please sign in to comment.