Skip to content

Commit

Permalink
commaspec
Browse files Browse the repository at this point in the history
  • Loading branch information
KommuSoft committed Oct 25, 2024
1 parent e3ebff8 commit 009d846
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/Text/CommaSpec.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module Text.CommaSpec where

import Test.Hspec(Spec, describe, it, shouldBe)
import Text.Comma(comma)

spec :: Spec
spec = describe "isWordChar" $ pure ()
spec = describe "comma" $ do
it "comma" $ do
comma [] `shouldBe` ""
comma ["red"] `shouldBe` "red"
comma ["red", "green"] `shouldBe` "red, and green"
comma ["red", "green", "blue"] `shouldBe` "red, green, and blue"

0 comments on commit 009d846

Please sign in to comment.