-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Added doctests for fibonacci.py #10836
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
Conversation
removed whitespace
for more information, see https://pre-commit.ci
Hold on, doctest seems to not be testing the function in question, I believe it's because it's a nested function. I'll need to figure something out for that. Sorry for not checking this properly. |
I closed this pull request as I realised doctest wasn't properly testing the function ( However I found out that doctests doesn't test local functions, which was the function I implemented doctests for. So I'm reopening this pull request to ask whether we need to implement a way doctest will actually test that function, or just merge it anyways as the doctests are working (I've tested the function in a separte isolated file). |
* added other possible cases * added test for correct output of truth table * few fibonacci tests added * updating DIRECTORY.md * Update nor_gate.py * updating DIRECTORY.md * Update fibonacci.py removed whitespace * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: = <=> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Describe your change:
#9943
Added doctests for the fib_recursive_term function in maths/fibonacci.py
Checklist: