Initial import
This commit is contained in:
commit
b5d61674d8
13 changed files with 287 additions and 0 deletions
10
test/doctest/Doctest.hs
Normal file
10
test/doctest/Doctest.hs
Normal 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
1
test/spec/Spec.hs
Normal file
|
|
@ -0,0 +1 @@
|
|||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
|
||||
12
test/spec/TK2MQTTSpec.hs
Normal file
12
test/spec/TK2MQTTSpec.hs
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue