Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deligoez
Copy link
Member

Currently, it's unclear how calculators behave in guarded transitions, especially when multiple branches are involved. We need comprehensive tests to document and verify the exact execution order and behavior of calculators within guarded transitions. This will help us to better understand the system's behavior and prevent potential misuse of calculators in state machine definitions

…ully

Add a test case to ensure that when a calculator succeeds but a guarded transition guard fails, the next viable transition branch is attempted. Validates expected behavior for state transitions.
Ensure guards and actions are not executed when a calculator fails.
…ith failure handling

Add a test to validate that multiple calculators are executed in sequence and halt processing on the first failure, preventing subsequent calculators, guards, and actions from executing.
Ensure first calculator is always executed even if its guards fail. Test covers behavior where actions depend on guard success, validating correct calculator and transition logic.
@deligoez deligoez self-assigned this Dec 24, 2024
@deligoez deligoez merged commit 72421b1 into main Dec 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants