Skip to content

Commit 5e315da

Browse files
Fix the tests
1 parent d3fe8c0 commit 5e315da

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/downstream/ensemble_multi_prob.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ prob3 = ODEProblem(sys3, [3.0, 3.0], (0.0, 1.0))
1717
ensemble_prob = EnsembleProblem([prob1, prob2, prob3])
1818
sol = solve(ensemble_prob, Tsit5(), EnsembleThreads())
1919
for i in 1:3
20-
@test sol[x, :][i] == sol.u[i][x]
21-
@test sol[y, :][i] == sol.u[i][y]
20+
@test sol[1,:,i] == sol.u[i][x]
21+
@test sol[2,:,i] == sol.u[i][y]
2222
end
2323
# Ensemble is a recursive array
24-
@test only.(sol(0.0, idxs = [x])) == sol[1, 1, :] == first.(sol[x, :])
25-
# TODO: fix the interpolation
26-
@test only.(sol(1.0, idxs = [x])) last.(sol[x, :])
24+
@test only.(sol(0.0, idxs = [x])) == sol[1, 1, :]
25+
@test only.(sol(1.0, idxs = [x])) [sol[i][1, end] for i in 1:3]

0 commit comments

Comments
 (0)