Created
April 29, 2013 16:23
-
-
Save jameskbride/5482722 to your computer and use it in GitHub Desktop.
Babysitter Kata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Babysitter Kata | |
Background | |
---------- | |
This kata simulates a babysitter working and getting paid for one night. The rules are pretty straight forward: | |
The babysitter | |
- starts no earlier than 5:00PM | |
- leaves no later than 4:00AM | |
- gets paid $12/hour from start-time to bedtime | |
- gets paid $8/hour from bedtime to midnight | |
- gets paid $16/hour from midnight to end of job | |
- gets paid for full hours (no fractional hours) | |
Feature: | |
As a babysitter | |
In order to get paid for 1 night of work | |
I want to calculate my nightly charge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C'mon Jim. Ya left out important details. When might the babysitter show up? When's bedtime?