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 tests #31

Open
JohnDoneth opened this issue Mar 3, 2021 · 1 comment
Open

Add tests #31

JohnDoneth opened this issue Mar 3, 2021 · 1 comment

Comments

@JohnDoneth
Copy link
Owner

Since most of the functionality abstracts over the bus by use of the DataBus trait we should be able to provide a mock struct that implements DataBus and can assert that the correct commands are being written.

@su-sd
Copy link

su-sd commented Sep 15, 2024

An enum could be used, where each variant contains a different bus type.
Than users of the API could pass the HD44780 around without the need to specify on every function that B is a DataBus.

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

No branches or pull requests

2 participants