-
-
Notifications
You must be signed in to change notification settings - Fork 47.7k
Open
Labels
enhancementThis PR modified some existing filesThis PR modified some existing files
Description
Feature description
So I was adding doctests to a nested function in fibonacci.py, however doctest doesn't seem to be testing that function.
The function in this case is fib_recursive_term(), that's nested inside fib_recursive, as seen below:
Note: the 5 doctests for fib_recursive_term() is what I added.
If I run the doctests, I get this output below.
As per the output below, 5 tests for fib_recursive() runs, but the 5 tests for fib_recursive_term() doesn't.
So I want to propose taking the fib_recursive_term() function out of the fib_recursive() function and have it defined above it, so doctests actually goes through it. Would there be any issues there?
Metadata
Metadata
Assignees
Labels
enhancementThis PR modified some existing filesThis PR modified some existing files