FizzBuzz: "Buzz" Requirement
Explore how to implement the Buzz feature for numbers divisible by 5 in the FizzBuzz kata. Learn to write the failing test, fix the code, and refactor following the TDD Red-Green-Refactor process using Go.
We'll cover the following...
We'll cover the following...
So far, we’ve implemented two scenarios of the FizzBuzz kata:
- The not divisible scenario.
- The Fizz feature prints
fizzwhen a number divisible by 3 is provided.
Now, let’s move to the Buzz feature.
Buzz scenario
As a reminder, the feature states that the function has to print Buzz when a number ...