Advertisement
Guest User

Untitled

a guest
Jun 20th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. The Kata is inspired by Calculating with Functions Kata for JavaScript.
  2.  
  3. The goal is to implement simple calculator which uses fluent syntax:
  4. Calc.new.one.plus.two # Should return 3
  5. Calc.new.five.minus.six # Should return -1
  6. Calc.new.seven.times.two # Should return 14
  7. Calc.new.nine.divided_by.three # Should return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement