Skip to content

Commit d010efd

Browse files
committed
bowling 1.0.0.2: drop unneeded rolls, edit a description
We were mostly already compliant. exercism/problem-specifications#536 exercism/problem-specifications@58ef1d2
1 parent 381d339 commit d010efd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises/bowling/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: bowling
2-
version: 0.9.0.1 # 2016-11-20
2+
version: 1.0.0.2
33

44
dependencies:
55
- base

exercises/bowling/test/Tests.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ cases = [ Case { description = "should be able to score a game with all zeros"
8282
, expected = Right 300
8383
}
8484
, Case { description = "rolls can not score negative points"
85-
, rolls = [-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
85+
, rolls = [-1]
8686
, expected = Left $ InvalidRoll 0 (-1)
8787
}
8888
, Case { description = "a roll can not score more than 10 points"
89-
, rolls = [11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
89+
, rolls = [11]
9090
, expected = Left $ InvalidRoll 0 11
9191
}
9292
, Case { description = "two rolls in a frame can not score more than 10 points"
93-
, rolls = [5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
93+
, rolls = [5, 6]
9494
, expected = Left $ InvalidRoll 1 6
9595
}
9696
, Case { description = "bonus roll after a strike in the last frame can not score more than 10 points"
@@ -121,7 +121,7 @@ cases = [ Case { description = "should be able to score a game with all zeros"
121121
, rolls = [0, 0]
122122
, expected = Left IncompleteGame
123123
}
124-
, Case { description = "a game with more than ten frames can not be scored"
124+
, Case { description = "cannot roll if game already has ten frames"
125125
, rolls = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
126126
, expected = Left $ InvalidRoll 20 0
127127
}

0 commit comments

Comments
 (0)