Skip to content

Commit

Permalink
Fix scrabble-score. Closes #97
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Apr 12, 2016
1 parent badc427 commit d3c85a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/scrabble-score/Example.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
open System

let letterScores =
[("AEIOULNRST", 1); ("DG", 2); ("BCMP", 3); ("FHVWY", 4); ("K", 5); ("JX", 9); ("QZ", 10)]
[("AEIOULNRST", 1); ("DG", 2); ("BCMP", 3); ("FHVWY", 4); ("K", 5); ("JX", 8); ("QZ", 10)]
|> List.map (fun (letters, score) -> letters |> Seq.map (fun letter -> (letter, score)))
|> Seq.concat
|> Map.ofSeq
Expand Down
2 changes: 1 addition & 1 deletion exercises/scrabble-score/ScrabbleScoreTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ let ``Complicated word scores more`` () =
[<Test>]
[<Ignore("Remove to run test")>]
let ``Scores are case insensitive`` () =
Assert.That(score "MULTIBILLIONAIRE", Is.EqualTo(20))
Assert.That(score "OXYPHENBUTAZONE", Is.EqualTo(41))

0 comments on commit d3c85a0

Please sign in to comment.