Example repository used for the talk Characterisation tests, the answer to the "I don't know what this does" question.
The talk can be found in Codurance's YouTube where I was following these slides. The exercise and the slides are based on an example by Michael Feathers that you can read here.
I'm sure that if you invest few minutes to check the code in Main you will understand what is ding very quick.
But the main goal of this exercise is to use the Characterisation testing strategy to extract information from the code, instead of reading it.
You can follow the different tests written here to understand what is happening and to use them as base examples for the next ones I encourage you to write.
Any suggestion to improve the code or the tests is more than welcome.