state actions test

This commit is contained in:
Alexey Fedoseev
2024-04-23 13:52:18 +03:00
parent 83e7bfe997
commit 5714ae66bf
3 changed files with 119 additions and 0 deletions

2
tests/12-output.txt Normal file
View File

@@ -0,0 +1,2 @@
Document: {id: '', name: '', format: 'Cyberiada-GraphML-1.0', meta: {standard version: '1.0', transition order: transition first, event propagation: block events}, elements: {State Machine: {id: 'G0', name: 'SM', elements: {Composite State: {id: 'n0', name: 'State 1', actions: {a {entry}, a {exit, behavior: 'exit();'}}, elements: {Simple State: {id: 'n0::n0', name: 'State 2', actions: {a {trigger: 'EVENT', guard: 'is_guard()', behavior: 'action();'}, a {trigger: 'EVENT', guard: 'is_guard() && is_second()', behavior: 'action1();
action2();'}, a {trigger: 'EVENT', guard: 'else'}, a {entry, behavior: 'init();'}}}}}}}}