...

/

Solution 3: Code Testing and Profiling

Solution 3: Code Testing and Profiling

Let’s solve the challenge set in the previous lesson.

We'll cover the following...

Solution

Here are the test functions for a package that calculates numbers in the Fibonacci sequence. The fibonacci.go file contains the recursive function to calculate the nthnth Fibonacci number. The fibonacci_test.go file contains the test cases.

Access this course and 1400+ top-rated courses and projects.