Move Fibonacci challenge code to a class (#140)

This commit is contained in:
Donne Martin
2017-01-22 12:06:58 -05:00
committed by GitHub
parent f71936199b
commit 91b3efc3e4
3 changed files with 53 additions and 83 deletions

View File

@@ -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__':