Commits

Christoph Schindler committed c002397

pair 2

  • Participants
  • Parent commits 60ac36a
  • Branches dojo-2012-10-21

Comments (0)

Files changed (2)

File BowlingWithAVengeance/bowling.py

 STRIKE = 10
+SPARE = '/'
 
 def parse_roll(roll):
+    if roll == '/':
+        return '/'
     return STRIKE

File BowlingWithAVengeance/test.py

 def test_parse_strike():
     assert_equal(bowling.parse_roll("X"),bowling.STRIKE)
     
+def test_parse_spare():
+    assert_equal(bowling.parse_roll("/"),bowling.SPARE)