We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AffectSystem
1 parent b88eb43 commit dcdd454Copy full SHA for dcdd454
test/symbolic_events.jl
@@ -311,10 +311,13 @@ end
311
312
cev = only(continuous_events(ball))
313
@test isequal(only(equations(cev)), x ~ 0)
314
- @test isequal(only(observed(cev.affect.system)), v ~ -Pre(v))
+ @test isequal(only(cev.affect.affect), v ~ -Pre(v))
315
ball = mtkcompile(ball)
316
317
@test length(ModelingToolkit.continuous_events(ball)) == 1
318
+ cev = only(continuous_events(ball))
319
+ @test isequal(only(equations(cev)), x ~ 0)
320
+ @test isequal(only(observed(cev.affect.system)), v ~ -Pre(v))
321
322
tspan = (0.0, 5.0)
323
prob = ODEProblem(ball, Pair[], tspan)
0 commit comments