Skip to content

Commit d5450da

Browse files
Merge pull request #1119 from AayushSabharwal/as/test-fixes
fix: use `t_nounits, D_nounits` in null_de testset
2 parents 1482ec6 + 7a63d84 commit d5450da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/downstream/null_de.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using ModelingToolkit, OrdinaryDiffEq, SteadyStateDiffEq, Test
2+
using ModelingToolkit: t_nounits as t, D_nounits as D
23
using ForwardDiff
34

4-
@variables t x(t) y(t)
5+
@variables x(t) y(t)
56
eqs = [0 ~ x - y
67
0 ~ y - x]
78

@@ -30,7 +31,7 @@ for kwargs in [
3031
@test sol.t[end] == step_integ.t
3132
end
3233

33-
@variables t x y
34+
@variables x y
3435
eqs = [0 ~ x - y
3536
0 ~ y - x]
3637

@@ -58,8 +59,7 @@ sol = solve(unsatprob) # Success
5859
# Issue#2664
5960
@testset "remake type promotion with empty initial conditions" begin
6061
@parameters P
61-
@variables t x(t)
62-
D = Differential(t)
62+
@variables x(t)
6363
# numerical ODE: x′(t) = P with x(0) = 0
6464
sys_num = structural_simplify(ODESystem([D(x) ~ P], t, [x], [P]; name = :sys))
6565
prob_num_uninit = ODEProblem(sys_num, [x => 0.0], (0.0, 1.0), [P => NaN]) # uninitialized problem

0 commit comments

Comments
 (0)