simonberner / pairing-in-go-intro

Pairing-Training Intro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pairing-in-go-intro

Excercise Goal

Everyone gets their hand on the keyboard to get familiar with gitpod.io.

Mission Goal

We as a pairing group, need to write a function that takes an integer n as an argument and prints and returns:

  • "Fizz": if dividable by 3
  • "Buzz": if dividable by 5
  • "FizzBuzz": if dividable by 3 and 5
  • 'n': otherwise

The mission can't be completed if we do not test it.

Example

1 -> "1"
2 -> "2"
3 -> "Fizz"
4 -> "4"
5 -> "Buzz"
...
15 -> "FizzBuzz"

PingPong TDD Approach

  1. Write a test (describing an aspect of the program)
  2. Run the test (which should fail because the program lacks that feature)
  3. Write just enough code (the simplest possible) to make the test pass
  4. Refactor the code and run the test
  5. Hand-over to the next person and repeat until it conforms to our mission goal

About

Pairing-Training Intro

License:MIT License


Languages

Language:Go 100.0%