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

Unit tests #7

Closed
vhdirk opened this issue Nov 2, 2018 · 2 comments
Closed

Unit tests #7

vhdirk opened this issue Nov 2, 2018 · 2 comments

Comments

@vhdirk
Copy link
Owner

vhdirk commented Nov 2, 2018

There's currently only one test, and it doesn't necessarily test anything since the existence of a maildir is optional for the test to pass.

@rhn
Copy link
Contributor

rhn commented Mar 30, 2019

While it's true that the supplied test doesn't test runtime compliance, it provides a guard rail against the insanity of the API. Another kind of a test might want to check against C library enforced invariants (e.g. should not compile if the drop order is broken). One of them is mentioned in #24

@vhdirk
Copy link
Owner Author

vhdirk commented Nov 15, 2019

Since commit 084675f, unit tests are now included. They are closely modeled after the original notdb python-cffi bindings.

@vhdirk vhdirk closed this as completed Nov 15, 2019
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