exercism/haskell/hello-world/test/Tests.hs

12 lines
296 B
Haskell
Raw Normal View History

2017-08-12 14:01:07 +00:00
import Test.Hspec (Spec, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import HelloWorld (hello)
main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs
specs :: Spec
specs = it "hello" $
hello `shouldBe` "Hello, World!"