Skip to content

Commit f93818e

Browse files
committed
more tests
1 parent 6e19b8f commit f93818e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/problem_building_test.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,15 @@ let
8686

8787
dprob3 = DiscreteProblem(u₀, [0.0, 1.0], p)
8888
@test dprob.tspan === (0.0, 1.0)
89+
90+
dprob4 = DiscreteProblem{true}(nothing, nothing, p)
91+
dprob4b = DiscreteProblem{true}(nothing, nothing)
92+
dprob5 = DiscreteProblem{true}(SciMLBase.DISCRETE_INPLACE_DEFAULT, u₀, tspan, p)
93+
dprob6 = DiscreteProblem{true}(SciMLBase.DISCRETE_INPLACE_DEFAULT, u₀, tspan)
94+
dprob7 = DiscreteProblem{true}((du,u,p,t) -> du[1] = 0, u₀, tspan)
95+
@test dprob7.u0 === u₀
96+
@test dprob7.tspan === tspan
97+
dprob8 = DiscreteProblem{true}(nothing, u₀, tspan)
98+
@test dprob8.u0 === u₀
99+
@test dprob8.tspan === tspan
89100
end

0 commit comments

Comments
 (0)