Skip to content

Commit 019a43f

Browse files
fix high level for kwarg splatting
1 parent 2b37c4d commit 019a43f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/high_level_solve.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ using Distributions
88
@test DiffEqBase.promote_tspan(Real[0,1.0]) == (0.0,1.0)
99

1010
prob = ODEProblem((u,p,t)->u,(p,t0)->p[1],(p)->(0.0,p[2]),(2.0,1.0))
11-
prob2 = DiffEqBase.get_concrete_problem(prob,nothing)
11+
prob2 = DiffEqBase.get_concrete_problem(prob)
1212

1313
@test prob2.u0 == 2.0
1414
@test prob2.tspan == (0.0,1.0)
1515

1616
prob = ODEProblem((u,p,t)->u,(p,t)->Normal(p,1),(0.0,1.0),1.0)
17-
prob2 = DiffEqBase.get_concrete_problem(prob,nothing)
17+
prob2 = DiffEqBase.get_concrete_problem(prob)
1818
@test typeof(prob2.u0) == Float64
1919

2020
kwargs(; kw...) = kw
2121
prob = ODEProblem((u,p,t)->u,1.0,nothing)
22-
prob2 = DiffEqBase.get_concrete_problem(prob,kwargs(tspan=(1.2,3.4)))
22+
prob2 = DiffEqBase.get_concrete_problem(prob,tspan=(1.2,3.4))
2323
@test prob2.tspan === (1.2,3.4)
2424

2525
prob = ODEProblem((u,p,t)->u,nothing,nothing)
26-
prob2 = DiffEqBase.get_concrete_problem(prob,kwargs(u0=1.01,tspan=(1.2,3.4)))
26+
prob2 = DiffEqBase.get_concrete_problem(prob,u0=1.01,tspan=(1.2,3.4))
2727
@test prob2.u0 === 1.01
2828

2929
prob = ODEProblem((u,p,t)->u,1.0,(0,1))
@@ -34,7 +34,7 @@ prob = ODEProblem((u,p,t)->u,1.0,(0,1))
3434

3535
prob = DDEProblem((u, h, p, t) -> - h(p, t - p[1]), (p, t0) -> p[2], (p, t) -> 0,
3636
(p) -> (0.0, p[3]), (1.0, 2.0, 3.0); constant_lags = (p) -> [p[1]])
37-
prob2 = DiffEqBase.get_concrete_problem(prob, nothing)
37+
prob2 = DiffEqBase.get_concrete_problem(prob)
3838

3939
@test prob2.u0 == 2.0
4040
@test prob2.tspan == (0.0, 3.0)

0 commit comments

Comments
 (0)