Skip to content

Commit 3a8f6ba

Browse files
dig in an actually do it
1 parent 02963a5 commit 3a8f6ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/odesystem.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,10 @@ prob = ODEProblem(sys, [], (0, 1.0))
467467
sol = solve(prob, Tsit5())
468468
@test sol[2x[1] + 3x[3] + norm(x)]
469469
2sol[x[1]] + 3sol[x[3]] + sol[norm(x)]
470-
@test sol[x .+ [y, 2y, 3y]] [sol[x] .+ sol[y]
471-
sol[x] .+ 2sol[y]
472-
sol[x] .+ 3sol[y]]
470+
@test sol[x .+ [y, 2y, 3y]] map((x...)->[x...],
471+
map((x,y)->x[1].+y,sol[x],sol[y]),
472+
map((x,y)->x[2].+2y,sol[x],sol[y]),
473+
map((x,y)->x[3].+3y,sol[x],sol[y]))
473474

474475
# Mixed Difference Differential equations
475476
@parameters t a b c d

0 commit comments

Comments
 (0)