Skip to content

Commit f59d1e4

Browse files
author
dd
committed
Format
1 parent e608d99 commit f59d1e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/root_equations.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ let
359359
@test isapprox(sol(4.0)[1], 2 * exp(-2.0))
360360

361361
# same as above - but with set-time event syntax
362-
cb1‵ = [1.0,] => affect1 # needs to be a Vector for the event to happen only once
363-
cb2‵ = [2.0,] => affect2
362+
cb1‵ = [1.0] => affect1 # needs to be a Vector for the event to happen only once
363+
cb2‵ = [2.0] => affect2
364364

365365
@named osys‵ = ODESystem(eqs, t, [A], [k, t1, t2], discrete_events = [cb1‵, cb2‵])
366366
oprob‵ = ODEProblem(osys‵, u0, tspan, p)
@@ -370,4 +370,3 @@ let
370370
@test oprob‵.p[1] == 1.0
371371
@test isapprox(sol‵(4.0)[1], 2 * exp(-2.0))
372372
end
373-

0 commit comments

Comments
 (0)