don't show totals in lifetime stats

This commit is contained in:
Jonathan Lamothe
2019-12-15 12:27:06 -05:00
parent 84c487dba5
commit 2b9a21c28b
4 changed files with 57 additions and 14 deletions

View File

@@ -33,6 +33,7 @@ spec = describe "Mtlstats.Format" $ do
leftSpec
rightSpec
centreSpec
padRightSpec
overlaySpec
monthSpec
labelTableSpec
@@ -98,6 +99,16 @@ centreSpec = describe "centre" $ do
it "should truncate the text" $
centre 2 "foo" `shouldBe` "fo"
padRightSpec :: Spec
padRightSpec = describe "padRight" $ mapM_
(\(label, width, str, expected) -> context label $
it ("should be " ++ show expected) $
padRight width str `shouldBe` expected)
-- label, width, input string, expected
[ ( "text shorter", 5, "foo", "foo " )
, ( "text longer", 3, "foobar", "foobar" )
]
overlaySpec :: Spec
overlaySpec = describe "overlay" $ do