Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Jan 26, 2024
1 parent 03db67f commit aa7cce8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions test/common_interface/cvode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ sol = solve(prob, CVODE_Adams(); saveat = saveat, save_everystep = false)

@test sol.t == saveat

sol = solve(prob, CVODE_Adams(); tstops = [0.9])

@test 0.9 sol.t
for tstop in [0.9, [0.9]]
sol = solve(prob, CVODE_Adams(); tstops)
@test 0.9 sol.t
end

sol = solve(prob, CVODE_Adams())
sol_idxs = solve(prob, CVODE_Adams(); save_idxs = [1], timeseries_errors = false)
Expand Down
6 changes: 4 additions & 2 deletions test/common_interface/ida.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ sol = solve(prob, IDA(); saveat = saveat, save_everystep = true)
@test sol.t != saveat
@test intersect(sol.t, saveat) == saveat
@info "IDA with tstops"
sol = solve(prob, IDA(); tstops = [0.9])
@test 0.9 sol.t
for tstop in [0.9, [0.9]]
sol = solve(prob, IDA(); tstops)
@test 0.9 sol.t
end

sol = solve(prob, IDA(); d_discontinuities = [0.9])
@test 0.9 sol.t
Expand Down

0 comments on commit aa7cce8

Please sign in to comment.