Why software testing?
http://lmgtfy.com/?q=why+software+testing%3F
How to convince your boss of TDD?
http://lmgtfy.com/?q=How+to+convince+my+boss+of+TDD%3F
(almost)
Write a test which will fail with the current implementation!
Implement code to fulfill the tests requirements!
Refactor as you wish!
Tests may not change to red!
Red
Green
Refactor
Red
Green
Refactor
Red
$ make setup
$ make testYou are a blacksmith and calculate the strength of your weapons by its name!
Names can be anything you may image, example names might be..
Mighty Axe of a thousand Bloodbaths
The heroic hammer of 7 heavens
Little rubber duck for the bathtub
Write a function which takes one parameter, the weapon name as a string, and returns its strength!
Each word in the weapons name counts strength +3
Some words have a special meaning:
We add conditions to weapons, expressed by a word in braces at the end. There are three conditions.
Weapons without a specific condition are considered as normal!