Haskell: Add hspec snippets

This commit is contained in:
Louis Pilfold 2015-11-28 22:16:16 +00:00
parent b5ab96b6a5
commit 4491460074

View File

@ -91,3 +91,23 @@ snippet let
snippet where snippet where
where where
${1:fn} = ${0:undefined} ${1:fn} = ${0:undefined}
snippet spec
import Test.Hspec
import Test.QuickCheck
main :: IO ()
main = hspec spec
spec :: Spec
spec =
describe "${1}" $ do
$0
snippet desc
describe "${1}" $ do
$0
snippet it
it "${1}" $
$0
snippet itp
it "${1}" $ property $
$0