implemented overlay
This commit is contained in:
1 parent
8dd4896f07
commit
84cb2c8c19
2 files changed
+24
No files matched your search
@@ -31,6 +31,7 @@ spec = describe "Mtlstats.Format" $ do
|
||||
leftSpec
|
||||
rightSpec
|
||||
centreSpec
|
||||
overlaySpec
|
||||
monthSpec
|
||||
|
||||
padNumSpec :: Spec
|
||||
@@ -89,6 +90,17 @@ centreSpec = describe "centre" $ do
|
||||
it "should truncate the text" $
|
||||
centre 2 "foo" `shouldBe` "fo"
|
||||
|
||||
overlaySpec :: Spec
|
||||
overlaySpec = describe "overlay" $ do
|
||||
|
||||
context "first string shorter" $
|
||||
it "should overlay" $
|
||||
overlay "foo" "abc123" `shouldBe` "foo123"
|
||||
|
||||
context "first string longer" $
|
||||
it "should overlay" $
|
||||
overlay "abc123" "foo" `shouldBe` "abc123"
|
||||
|
||||
monthSpec :: Spec
|
||||
monthSpec = describe "month" $ do
|
||||
|
||||
|
||||
Reference in new issue
Block a user