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 Without Assertions? #30

Open
jamiejackson opened this issue Jul 20, 2015 · 1 comment
Open

Unit Tests Without Assertions? #30

jamiejackson opened this issue Jul 20, 2015 · 1 comment

Comments

@jamiejackson
Copy link

I'm confused about the unit tests without assertions. I took a quick stab at writing some assertions, but since all of the (new) assertions fail, something's wrong with the code or (very likely) my assumptions.

jamiejackson@fb34c7b

@emcrisostomo
Copy link
Collaborator

Hi @jamiejackson,

Yes, you're right: those assertions fail. The only "proper" unit test is rfc6238TestVectors, a method that tests the TOTP generator against the test vectors specified in RFC 6238. The other methods are legacy and utility methods that are there for (my) convenience. Some of them could be cleaned up and refactored into proper unit tests, while others should probably be dropped altogether.

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