fixed name column spacing
This commit is contained in:
parent
32f61ccc89
commit
19e0242135
|
@ -150,7 +150,7 @@ playerReport width label ps = let
|
|||
|
||||
playerNameColWidth :: [Player] -> Int
|
||||
playerNameColWidth = foldr
|
||||
(\player current -> max current $ length $ player^.pName)
|
||||
(\player current -> max current $ succ $ length $ player^.pName)
|
||||
10
|
||||
|
||||
showStats :: GameStats -> String
|
||||
|
|
|
@ -61,5 +61,5 @@ playerNameColWidthSpec = describe "playerNameColWidth" $ do
|
|||
-- label, players, expected
|
||||
[ ( "empty list", [], 10 )
|
||||
, ( "short names", [short1, short2], 10 )
|
||||
, ( "long name", [short1, long], 15 )
|
||||
, ( "long name", [short1, long], 16 )
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user