Skip to content
fruedaCodePublic

About

Kata TDD FizzBuzz

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

FizzBuzz Game TDD

This is an example of TDD with spock framework and kotlin implementation

What we want to do?

An implementation of the well-known party / drinking game.

  • When passed an argument divisible by 3 the function should return fizz.
  • When passed an argument divisible by 5 the function should return buzz.
  • When passed an argument divisible by 3 and 5 the function should return fizzbuzz.
  • When passed any other argument the function should return the argument.

For example: FizzBuzz().apply(3) >> "fizz"
FizzBuzz().apply(6) >> "fizz"
FizzBuzz().apply(5) >> "fizz"
FizzBuzz().apply(10) >> "fizz"
FizzBuzz().apply(15) >> "fizzbuzz"
FizzBuzz().apply(30) >> "fizzbuzz"
FizzBuzz().apply(4) >> "4"

Requirements

** JDK 8 ** Git

Get started

git clone https://github.com/fuedacode/fizzbuzz.git
cd fizzbuzz
../gradlew

About

Kata TDD FizzBuzz

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages