Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for state machine semantics #544

Merged
merged 2 commits into from
Dec 5, 2024
Merged

Conversation

bocchino
Copy link
Collaborator

@bocchino bocchino commented Dec 4, 2024

  • Add unit tests for fpp-depend and fpp-locate-uses.
  • Fix bug in output regeneration for fpp-depend.

Closes #541.

@bocchino bocchino requested a review from Kronos3 December 4, 2024 19:31
Copy link
Collaborator

@Kronos3 Kronos3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one minor comment

Comment on lines +7 to +9
action a: A
guard g: G
signal s: string size s
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to add warnings about unused definitions inside state machines?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that makes sense. Right now we don't have any "warning report" capability for FPP, we just have detect-error-and-halt. We would need to design an interface to the warnings, e.g., can we turn them on and off, do they just display to the console, can they be promoted to errors?

@bocchino bocchino merged commit a9ddfba into main Dec 5, 2024
11 checks passed
@bocchino bocchino deleted the issue-541-sm-tests branch December 5, 2024 23:18
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.

Add tests for type and constant uses in state machine definitions
2 participants