mark rookies in playerSummary
This commit is contained in:
parent
e077c32956
commit
5209c4a296
|
@ -32,7 +32,7 @@ playerDetails p = unlines $ top ++ [""] ++ table
|
|||
where
|
||||
top = labelTable
|
||||
[ ( "Number", show $ p^.pNumber )
|
||||
, ( "Name", p^.pName )
|
||||
, ( "Name", playerName p )
|
||||
, ( "Position", p^.pPosition )
|
||||
]
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ playerDetailsSpec = describe "playerDetails" $
|
|||
it "should give a detailed description" $ let
|
||||
|
||||
p = newPlayer 1 "Joe" "centre"
|
||||
& pRookie .~ True
|
||||
& pYtd .~ PlayerStats
|
||||
{ _psGoals = 2
|
||||
, _psAssists = 3
|
||||
|
@ -50,7 +51,7 @@ playerDetailsSpec = describe "playerDetails" $
|
|||
|
||||
expected = unlines
|
||||
[ " Number: 1"
|
||||
, " Name: Joe"
|
||||
, " Name: Joe*"
|
||||
, "Position: centre"
|
||||
, ""
|
||||
, " YTD Lifetime"
|
||||
|
|
Loading…
Reference in New Issue
Block a user