Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 773 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 773 Bytes

TDD Kata: FizzBuzz in Java

Kata

  1. Write a “fizzBuzz” method that accepts a number as input and returns it as a String.
  2. For multiples of three return “Fizz” instead of the number
  3. For the multiples of five return “Buzz”
  4. For numbers that are multiples of both three and five return “FizzBuzz”.

Requirements

Plain

Nix

Usage

  • Run tests: ./gradlew test
  • Watch tests: watchexec -rc -w src -- './gradlew test --console rich'