Skip to content

Commit 5fee8ca

Browse files
Merge pull request #1971 from SciML/tests
Fix tests for indexing bug fix
2 parents b384ad1 + 4e21a07 commit 5fee8ca

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ NaNMath = "0.3, 1"
7171
RecursiveArrayTools = "2.3"
7272
Reexport = "0.2, 1"
7373
RuntimeGeneratedFunctions = "0.4.3, 0.5"
74-
SciMLBase = "1.72.0"
74+
SciMLBase = "1.75.0"
7575
Setfield = "0.7, 0.8, 1"
7676
SimpleNonlinearSolve = "0.1.0"
7777
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0, 2"

test/odesystem.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,11 @@ sys = structural_simplify(sys)
466466
prob = ODEProblem(sys, [], (0, 1.0))
467467
sol = solve(prob, Tsit5())
468468
@test sol[2x[1] + 3x[3] + norm(x)]
469-
2sol[x[1]] + 3sol[x[3]] + vec(mapslices(norm, hcat(sol[x]...), dims = 2))
470-
@test sol[x + [y, 2y, 3y]] sol[x] + [sol[y], 2sol[y], 3sol[y]]
469+
2sol[x[1]] + 3sol[x[3]] + sol[norm(x)]
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]))
471474

472475
# Mixed Difference Differential equations
473476
@parameters t a b c d

0 commit comments

Comments
 (0)