haskell: hello-world

This commit is contained in:
2021-09-08 17:47:47 -04:00
parent 53e1e0fbf2
commit b464cb53ad
7 changed files with 188 additions and 0 deletions

View File

@ -0,0 +1,13 @@
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!"
-- 5c542864b011fb742aa95ca950d3473ce168ec8c