Created
June 24, 2013 20:16
-
-
Save sprengerjo/5853233 to your computer and use it in GitHub Desktop.
first test and first implementation
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
@Test | |
defvoid gutterGamesOnly() { | |
(1..20).forEach[game.roll(0)] | |
assertEquals(20 * 0, game.score()) | |
} | |
// the implementation so far... | |
class Game { | |
def roll(int score) { | |
} | |
def score() { | |
0 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment