BooleanExpressions.sctunit 424 B

1234567891011121314151617
  1. testclass BooleanExpressions for statechart BooleanExpressions {
  2. @Test
  3. operation booleanExpressions(){
  4. enter
  5. assert active (BooleanExpressions.main_region.StateA)
  6. assert myBool1 == true
  7. assert myBool2 == false
  8. raise e1
  9. proceed 1 cycle
  10. assert active (BooleanExpressions.main_region.StateB)
  11. assert and == false
  12. assert or == true
  13. assert not == false
  14. assert equal == false
  15. assert notequal == true
  16. }
  17. }