Skip to content

Commit 1358c0b

Browse files
Update retcodes in tests
1 parent cf88de2 commit 1358c0b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ModelingToolkit"
22
uuid = "961ee093-0014-501f-94e3-6117800e7a78"
33
authors = ["Yingbo Ma <mayingbo5@gmail.com>", "Chris Rackauckas <accounts@chrisrackauckas.com> and contributors"]
4-
version = "8.35.0"
4+
version = "8.35.1"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

test/components.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ let
7878
tspan = (0.0, 10.0)
7979

8080
prob = ODAEProblem(sys, u0, tspan, params)
81-
@test solve(prob, Tsit5()).retcode == :Success
81+
@test solve(prob, Tsit5()).retcode == ReturnCode.Success
8282
end
8383

8484
let

test/state_selection.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ let
128128
prob1 = ODEProblem(sys, u0, (0.0, 10.0), [])
129129
prob2 = ODAEProblem(sys, u0, (0.0, 10.0), [])
130130
prob3 = DAEProblem(sys, D.(states(sys)) .=> 0.0, u0, (0.0, 10.0), [])
131-
@test solve(prob1, FBDF()).retcode == :Success
132-
@test solve(prob2, FBDF()).retcode == :Success
133-
@test solve(prob3, DFBDF()).retcode == :Success
131+
@test solve(prob1, FBDF()).retcode == ReturnCode.Success
132+
@test solve(prob2, FBDF()).retcode == ReturnCode.Success
133+
@test solve(prob3, DFBDF()).retcode == ReturnCode.Success
134134
end
135135

136136
# 1537
@@ -194,8 +194,8 @@ let
194194
Ek_3 => 3]
195195
prob1 = ODEProblem(sys, u0, (0.0, 0.1))
196196
prob2 = ODAEProblem(sys, u0, (0.0, 0.1))
197-
@test solve(prob1, FBDF()).retcode == :Success
198-
@test solve(prob2, FBDF()).retcode == :Success
197+
@test solve(prob1, FBDF()).retcode == ReturnCode.Success
198+
@test solve(prob2, FBDF()).retcode == ReturnCode.Success
199199
end
200200

201201
let
@@ -281,5 +281,5 @@ let
281281
@named catapult = ODESystem(eqs, t, vars, params, defaults = defs)
282282
sys = structural_simplify(catapult)
283283
prob = ODEProblem(sys, [], (0.0, 0.1), [l_2f => 0.55, damp => 1e7]; jac = true)
284-
@test solve(prob, Rodas4()).retcode == :Success
284+
@test solve(prob, Rodas4()).retcode == ReturnCode.Success
285285
end

test/structural_transformation/index_reduction.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,6 @@ for sys in [
157157

158158
prob_auto = ODEProblem(sys, u0, (0.0, 0.5), p)
159159
sol = solve(prob_auto, FBDF())
160-
@test sol.retcode == :Success
160+
@test sol.retcode == ReturnCode.Success
161161
@test norm(sol[x] .^ 2 + sol[y] .^ 2 .- 1) < 1e-2
162162
end

0 commit comments

Comments
 (0)