todays kata is the supermarket pricing kata.
first failing test
items have a unit price
refactor test name
define the concept of a register
register
no concept of BOGOF
buy one get one free
introduce second type of offer and appropriate failing test
make the test pass
refactor
failing test
now the price is just plain wrong
refactor
going to refactor substantially
unit offer passes the test
introduce the receipt object
concept of receipt baked in now
hurrah, understand something about before each
offers dont write to the receipt