go-tdd-katas
go-tdd-katas copied to clipboard
TDD Code katas in the Go programming language
Includes following problems:
- Mars Rover
- Fizzbuzz
- Fibonacci closure
- Picture generation
- Roman numbers
- Slice expansion
- Square root computation
- Wordcount
Dependencies
All katas were developed with test driven development and thus make heavy usage of the packages
- github.com/stretchr/testify
- testing (builtin)
Running
Tests are run with
go test
in the project directory.
For example you may run the Mars Rover kata tests with
go get github.com/mriehl/go-tdd-katas/go/rover
cd $GOPATH/src/github.com/mriehl/go-tdd-katas/go/rover
go test