From: Katy Huff Date: Sun, 13 Jan 2013 18:04:15 +0000 (-0600) Subject: added small exercise. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0284454f234b39d9bbacb1b0ef46327f934f84d1;p=swc-testing-nose.git added small exercise. --- diff --git a/python/testing/Readme.md b/python/testing/Readme.md index 70d3554..1dbfdbd 100644 --- a/python/testing/Readme.md +++ b/python/testing/Readme.md @@ -512,6 +512,14 @@ def fib(n): return fib(n - 1) + fib(n - 2) ``` +# Quality Assurance Exercise + +Can you think of other tests to make for the fibonacci function? I promise there +are at least two. + +Implement one new test in test_fib.py, run nosetests, and if it fails, implement +a more robust function for that case. + And thus - finally - we have a robust function together with working tests!