fixed name column spacing
This commit is contained in:
1 parent
32f61ccc89
commit
19e0242135
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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 )
|
||||
]
|
||||
Reference in new issue
Block a user