Initial import

This commit is contained in:
Alexander Kobjolke 2023-11-26 20:44:12 +01:00
commit b5d61674d8
13 changed files with 287 additions and 0 deletions

10
test/doctest/Doctest.hs Normal file
View file

@ -0,0 +1,10 @@
-- | Rn the doctest executable
module Main where
import System.Process (callProcess)
doctest :: [String] -> IO ()
doctest = callProcess "doctest"
main :: IO ()
main = doctest ["--fast", "src"]

1
test/spec/Spec.hs Normal file
View file

@ -0,0 +1 @@
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}

12
test/spec/TK2MQTTSpec.hs Normal file
View file

@ -0,0 +1,12 @@
module TK2MQTTSpec (spec) where
import HCat.Internal
import Test.Hspec
import Test.Hspec.QuickCheck (prop)
spec :: Spec
spec = do
describe "parseArgs" do
it "returns the filename if given a single argument" do
True `shouldBe` True