Haskell: Add hspec snippets
This commit is contained in:
parent
b5ab96b6a5
commit
4491460074
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user