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