initial & final vertexes in the doc interface + tests

This commit is contained in:
Alexey Fedoseev
2024-04-23 11:37:39 +03:00
parent a2c1e41e5c
commit 8b0db7081f
10 changed files with 343 additions and 3 deletions

View File

@@ -29,6 +29,11 @@ int main(int argc, char** argv)
{
Document d;
d.new_state_machine("SM1");
try {
// check id uniqueness
d.new_state_machine("G0", "SM2");
} catch (const Cyberiada::ParametersException&){
}
d.new_state_machine("SM2");
try {
cout << d << endl;