Skip to content

Commit

Permalink
remove p from kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatanwesen committed Oct 17, 2023
1 parent 5c30d8a commit 2c13b5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/convert_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ end
u0 = [1.0; 0.0; 0.0]
tspan = (0.0, 100.0)
p = [10.0,28.0,8/3]
prob = ODEProblem(lorenz!, u0, tspan,p=p;a=1.0,b=2.0)
prob = ODEProblem(lorenz!, u0, tspan,p;a=1.0,b=2.0)
nlprob = NonlinearProblem(prob)
@test nlprob.kwargs[:p] == prob.kwargs[:p]
@test nlprob.kwargs[:a] == prob.kwargs[:a]
@test nlprob.kwargs[:b] == prob.kwargs[:b]
end
Expand All @@ -59,9 +58,8 @@ end
u0 = [1.0; 0.0; 0.0]
tspan = (0.0, 100.0)
p = [10.0,28.0,8/3]
prob = ODEProblem(lorenz!, u0, tspan,p=p;a=1.0,b=2.0)
prob = ODEProblem(lorenz!, u0, tspan,p;a=1.0,b=2.0)
sprob = SteadyStateProblem(prob)
@test sprob.kwargs[:p] == prob.kwargs[:p]
@test sprob.kwargs[:a] == prob.kwargs[:a]
@test sprob.kwargs[:b] == prob.kwargs[:b]
end

0 comments on commit 2c13b5d

Please sign in to comment.