Commits

Christoph Schindler committed c002397

pair 2

Comments (0)

Files changed (2)

BowlingWithAVengeance/bowling.py

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

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)