Use TDD to drive out the creation of a Calculator Class the follows this interaction pattern:
calc = Calculator.new
#=> #<Calculator:0x007f9787335038>
calc.total
#=> 0
Use TDD to drive out the following behavior:
calc = Calculator.new
calc.total
#=> 0
calc.total.class
#=> Integer
calc.add(5)
#=> 5
calc.add 2
#=> 7
calc.total
#=> 7
Use TDD to drive out the following behavior:
calc = Calculator.new
calc.add(5)
calc.subtract 2
#=> 3
calc.subtract 10
calc.total
#=> -7
calc.clear
calc.total
#=> 0
calc = Calculator.new
calc.multiply 5
#=> 0
calc.total
#=> 0
calc.add(5)
calc.multiply 3
#=> 15
calc.divide 7
calc.total
#=> 2.142857142857143
calc.divide(0)
#=> "Error: Cannot divide by 0"
calc.clear
calc.total
#=> 0