StatechartLocalReactions.sctunit 457 B

123456789101112131415
  1. testcase for StatechartLocalReactions {
  2. test statechartLocalReactionsTest {
  3. assert active (StatechartLocalReactions.main_region.S1)
  4. assert active (StatechartLocalReactions.region2.a)
  5. while [ myInt < 10 ] {
  6. assert active (StatechartLocalReactions.region2.a)
  7. if[myInt%2 == 0]{
  8. assert active (StatechartLocalReactions.main_region.S1)
  9. }else {
  10. assert active (StatechartLocalReactions.main_region.S2)
  11. }
  12. cycle
  13. }
  14. }
  15. }