Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The Kata is inspired by Calculating with Functions Kata for JavaScript.
- The goal is to implement simple calculator which uses fluent syntax:
- Calc.new.one.plus.two # Should return 3
- Calc.new.five.minus.six # Should return -1
- Calc.new.seven.times.two # Should return 14
- Calc.new.nine.divided_by.three # Should return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement