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

Section on unit testing #35

Open
temken opened this issue Jun 1, 2020 · 2 comments
Open

Section on unit testing #35

temken opened this issue Jun 1, 2020 · 2 comments

Comments

@temken
Copy link

temken commented Jun 1, 2020

  • What makes a unit test a "good test"?
  • How to write good unit tests for more complicated functions than int fibonacci(int n)? For example, what if the return value of a function is random?
  • How to write unit tests for private class-member functions?
  • How to test e.g. functions that only print out some summary on the terminal?
  • How to test the failure of functions, e.g. error messages, warnings.
@bast
Copy link
Member

bast commented Jun 1, 2020

Great questions/suggestions! Thanks for raising this!

@bast
Copy link
Member

bast commented Jun 1, 2020

We'll talk about it tomorrow :-)

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