This repo contains katas from the book Agile Technical Practices Distilled: A Journey Toward Mastering Software Design.
- Classic TDD I
- Fizz Buzz
- Leap Year
- Nth Fibonacci
- Classic TDD II
- Stats Calculator
- Anagrams
- Classic TDD III
- Design I - Object Calisthenics
- Testing Legacy Code
- Design VIII - The four elements of simple design
- Outside-In Development
You need to have GHC and Hspec installed.
$ ghci
Prelude> :load tdd/fibonacci.hs
[1 of 1] Compiling Main ( tdd/fibonacci.hs, interpreted )
Ok, modules loaded: Main.
*Main> main
fib returning elements of the fibonacci sequence
returns the 0th element
returns the 1st element
returns the 2nd element
returns the 3rd element
returns the 9th element
Finished in 0.0032 seconds
5 examples, 0 failures