StatechartLocalReactions.sctunit 513 B

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