Skip to content

Enhancement: Add tests for gen_challenge() and test_answer() #632

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

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

localheinz
Copy link
Contributor

This pull request

  • adds tests for gen_challenge() and test_answer()

Follows #626.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! Testing test_answer() definitely makes sense. I'm not sure about the gen_challenge() test, since using rand() might not be the best idea anyway, so that we needed to mock the random number generator anyway. OTOH, we could still rewrite the test, so I guess this is good as is.

@localheinz
Copy link
Contributor Author

@cmb69

Are there any objections to merging this pull request?

@cmb69 cmb69 merged commit d8717d3 into php:master Jul 15, 2022
@cmb69
Copy link
Member

cmb69 commented Jul 15, 2022

Thank you!

@localheinz localheinz deleted the feature/spam-challenge branch July 15, 2022 11:29
@localheinz
Copy link
Contributor Author

Thank you, @cmb69 and @kamil-tekiela!

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.

3 participants