Skip to content

Commit cb80b6a

Browse files
test: fix symbolic events test
1 parent 9666196 commit cb80b6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/symbolic_events.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ let
829829
sol = solve(prob, Tsit5(), saveat = 0.1)
830830

831831
@test typeof(oneosc_ce_simpl) == ODESystem
832-
@test sol[1, 6] < 1.0 # test whether x(t) decreases over time
833-
@test sol[1, 18] > 0.5 # test whether event happened
832+
@test sol[oscce.x, 6] < 1.0 # test whether x(t) decreases over time
833+
@test sol[oscce.x, 18] > 0.5 # test whether event happened
834834
end
835835

836836
@testset "Additional SymbolicContinuousCallback options" begin

0 commit comments

Comments
 (0)