mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-09 10:58:02 +00:00
Move Fibonacci challenge code to a class (#140)
This commit is contained in:
@@ -14,9 +14,10 @@ class TestFib(object):
|
||||
|
||||
def main():
|
||||
test = TestFib()
|
||||
test.test_fib(fib_recursive)
|
||||
test.test_fib(fib_dynamic)
|
||||
test.test_fib(fib_iterative)
|
||||
math = Math()
|
||||
test.test_fib(math.fib_recursive)
|
||||
test.test_fib(math.fib_dynamic)
|
||||
test.test_fib(math.fib_iterative)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user