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 roundtrip tests #53

Merged
merged 7 commits into from
Mar 12, 2024
Merged

Add roundtrip tests #53

merged 7 commits into from
Mar 12, 2024

Conversation

mjhouse
Copy link
Owner

@mjhouse mjhouse commented Mar 12, 2024

Should resolve #52 and #51

  • Added Header trait for CommandWord and StatusWord
  • Added bytes and parity methods to WordType enum
  • Updated Message to provide/standardize conversion methods
    • Gave Message generic param to set word count
    • Reorganized/standardized method names
    • Added generic read method for parsing a byte buffer
    • Added write method for writing to byte buffer
    • Added roundtrip conversion tests

@mjhouse mjhouse merged commit 991bf97 into development Mar 12, 2024
1 check passed
@mjhouse mjhouse deleted the add_roundtrip_tests branch March 12, 2024 20:32
@mjhouse mjhouse mentioned this pull request Mar 12, 2024
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 as_bytes method to Message structs
1 participant