The idea for this project is to practice TDD.
The purpose is to create a simple class/method that adds delimited values from a string. The list of test is as follows:
- An empty string returns zero
- A single number returns the value
- Two numbers, comma delimited, returns the sum
- Two numbers, newline delimited, returns the sum
- Three numbers, delimited either way, returns the sum
- Negative numbers throw an exception
- Numbers greater than 1000 are ignored
- A single char delimiter can be defined on the first line (e.g. //# for a ‘#’ as the delimiter)
- A multi char delimiter can be defined on the first line (e.g. //[###] for ‘###’ as the delimiter)
- Many single or multi-char delimiters can be defined (each wrapped in square brackets)
The attempts are segregated into separate branches
The idea came from the follwing article: http://www.peterprovost.org/blog/2012/05/02/kata-the-only-way-to-learn-tdd/