aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-06-04 13:04:36 +0300
committerGalin Simeonov <gts@volconst.com>2021-07-15 18:04:02 +0300
commitb845e4754be86d2216733d9bea75cb301f38739d (patch)
tree5ba6355d1cb36b1bfaadf82781796b1c42b9202b /tests
parent76fc38b3cdfded2911b464baa7b182b5102318d1 (diff)
downloadMEGATRON-b845e4754be86d2216733d9bea75cb301f38739d.tar.gz
added expressions and the if statement
Diffstat (limited to 'tests')
-rw-r--r--tests/.test5.swpbin0 -> 12288 bytes
-rw-r--r--tests/test42
-rw-r--r--tests/test511
3 files changed, 12 insertions, 1 deletions
diff --git a/tests/.test5.swp b/tests/.test5.swp
new file mode 100644
index 0000000..6e03612
--- /dev/null
+++ b/tests/.test5.swp
Binary files differ
diff --git a/tests/test4 b/tests/test4
index 5130059..579e54d 100644
--- a/tests/test4
+++ b/tests/test4
@@ -19,6 +19,6 @@ machine temp_switch
starting on A;
transitions
[
- from ( A && !light_on ) to B on event A execute kek;
+ from ( !A && !light_on ) to B on event A execute kek;
];
];
diff --git a/tests/test5 b/tests/test5
new file mode 100644
index 0000000..fc9ff67
--- /dev/null
+++ b/tests/test5
@@ -0,0 +1,11 @@
+machine A
+[
+ states [ A ];
+ events [ A ];
+ starting on A;
+ transitions
+ [
+ from A to A on event A given (B.C && !C.D)
+ execute eke;
+ ];
+];