mark rookies in goalieSummary
This commit is contained in:
parent
5209c4a296
commit
ee3cea5643
|
@ -31,7 +31,7 @@ goalieDetails :: Goalie -> String
|
|||
goalieDetails g = let
|
||||
header = unlines $ labelTable
|
||||
[ ( "Number", show $ g^.gNumber )
|
||||
, ( "Name", g^.gName )
|
||||
, ( "Name", goalieName g )
|
||||
]
|
||||
|
||||
body = unlines $ numTable ["YTD", "Lifetime"] $ map
|
||||
|
|
|
@ -35,6 +35,7 @@ spec = describe "Goalie" $ do
|
|||
goalieDetailsSpec :: Spec
|
||||
goalieDetailsSpec = describe "goalieDetails" $ let
|
||||
input = newGoalie 1 "Joe"
|
||||
& gRookie .~ True
|
||||
& gYtd
|
||||
%~ ( gsGames .~ 2 )
|
||||
. ( gsMinsPlayed .~ 3 )
|
||||
|
@ -54,7 +55,7 @@ goalieDetailsSpec = describe "goalieDetails" $ let
|
|||
|
||||
expected = unlines
|
||||
[ "Number: 1"
|
||||
, " Name: Joe"
|
||||
, " Name: Joe*"
|
||||
, ""
|
||||
, " YTD Lifetime"
|
||||
, " Games played 2 9"
|
||||
|
|
Loading…
Reference in New Issue
Block a user