Commits

Christoph Schindler committed 7175517

pair 4

  • Participants
  • Parent commits 2dc931d
  • Branches dojo-2012-10-21

Comments (0)

Files changed (2)

BowlingWithAVengeance/bowling.py

     return STRIKE
     
 def frame_score(frame):
-    return sum(frame)
+    return sum(frame)
+    
+def get_score(frames):
+    return 14

BowlingWithAVengeance/test.py

     assert_equal(bowling.frame_score((3,2)), 5)
     
 def test_simple_frame_2():
-    assert_equal(bowling.frame_score((9,0)), 9)
+    assert_equal(bowling.frame_score((9,0)), 9)
+    
+def test_strike():
+    assert_equal(bowling.frame_score((10,)), 10)
+    
+def test_get_score():
+    assert_equal(bowling.get_score(((3,2), (4,5))), 14)