Skip to content

Instantly share code, notes, and snippets.

@sebreh
Forked from RSpace/bowling_scores.rb
Last active August 9, 2017 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebreh/8352377 to your computer and use it in GitHub Desktop.
Save sebreh/8352377 to your computer and use it in GitHub Desktop.
Bowling Kata tests
[
[0, [0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0]],
[20, [1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1]],
[6, [1,1, 1,1, 1,1]], # incomplete
[18, [1,1, 6,4, 3]], # incomplete w/ spare
[150, [5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5,5, 5]],
[47, [1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 1,1, 10, 10 ,9]],
[173, [7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 7,3, 10]],
[300, [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]],
[280, [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 5]], # incomplete
[300, [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]], # extras
[240, [10, 10, 10, 0,0, 10, 10, 10, 10, 10, 10, 10, 10]],
[245, [10, 10, 10, 10, 10, 10, 10, 10, 10, 1,1]]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment