Skip to content

Commit

Permalink
scrabble-score: Test entire alphabet (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertseng authored Jan 31, 2017
1 parent 10f3ad6 commit 0863448
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exercises/scrabble-score/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ specs = describe "scrabble-score" $ do
where
assertion = scoreWord input `shouldBe` fromIntegral expected

-- Test cases adapted from `exercism/x-common/scrabble-score.json` on 2016-07-26.
-- Test cases adapted from `exercism/x-common/scrabble-score.json` on 2017-01-31.

data Case = Case { description :: String
, input :: String
Expand Down Expand Up @@ -75,4 +75,8 @@ cases = [ Case { description = "lowercase letter"
, input = ""
, expected = 0
}
, Case { description = "entire alphabet available"
, input = "abcdefghijklmnopqrstuvwxyz"
, expected = 87
}
]

0 comments on commit 0863448

Please sign in to comment.