The Wayback Machine - https://web.archive.org/web/20201124012315/https://github.com/brycx/orion/issues/120
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 for trait implementations on newtypes #120

Open
brycx opened this issue Feb 25, 2020 · 0 comments
Open

Add tests for trait implementations on newtypes #120

brycx opened this issue Feb 25, 2020 · 0 comments

Comments

@brycx
Copy link
Owner

@brycx brycx commented Feb 25, 2020

To check that all newtypes (SecretKeys, Poly1305, etc.) implement the correct traits, new testing functions are needed.

For example fn test_traits_secret_key<Secret: Debug + Drop + PartialEq>() {} could be used to check that a secret key implements the needed traits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.