avatar Bite 238. Write tests for Fibonacci

Note this is a Test Bite and uses Python 3.7 and MutPy 0.6.1

Our first Test Bite! The concept is simple: to pass a Test Bite, you write tests for the program under the "Code to Test" tab.

We run pytest-cov and MutPy against your code to see if your tests are strong enough (if interested, check out our full feature launch write-up).

To kick this off we have you write some tests for fib which generates a Fibonacci sequence. Good luck and let us know if you have any feedback.

Login and get coding
go back Beginner level
Bitecoin 2X

472 out of 525 users completed this Bite.
Will you be the 473rd person to crack this Bite?
Resolution time: ~28 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.15 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help