-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration test for multiple actions and fix deadock detection
- Loading branch information
Arian Weber
authored and
Arian Weber
committed
Mar 19, 2024
1 parent
9b27d96
commit 3ee6980
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
model :MultipleActions do | ||
|
||
graph :GraphWithMultipleActions do | ||
states :one, :two, init: :one | ||
|
||
var a: (0..10), init: 0 | ||
var b: (0..10), init: 0 | ||
var c: (0..10), init: 0 | ||
|
||
transition :one => :two do | ||
action "a := 1 + 1 | b := 0 | c := 25 - (2 * 10)" | ||
end | ||
end | ||
|
||
specify "The graph" do | ||
it "set a = 2" => :"X a == 2" | ||
it "set b = 0" => :"X b == 0" | ||
it "set c = 5" => :"X c == 5" | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters