Skip to content

Commit 93aa2f7

Browse files
committed
fix test
1 parent 36ef4dd commit 93aa2f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/SimpleImplicitDiscreteSolve/test/runtests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ end
5959
tsteps = 15
6060
u0 = [1., 3.]
6161
idprob = ImplicitDiscreteProblem(periodic!, u0, (0, tsteps), [])
62-
integ = init(idprob, SimpleIDSolve())
63-
@test integ.u[1]^2 + integ.u[2]^2 16
62+
initsol, initfail = DiffEqBase.__init(idprob, SimpleIDSolve())
63+
@test initsol.u[1]^2 + initsol.u[2]^2 16
64+
65+
idsol = solve(idprob, SimpleIDSolve())
6466

6567
for ts in 1:tsteps
66-
step!(integ)
67-
@test integ.u[1]^2 + integ.u[2]^2 16
68+
step = idsol.u[ts]
69+
@test step[1]^2 + step[2]^2 16
6870
end
6971
end

0 commit comments

Comments
 (0)