@@ -4,6 +4,8 @@
4{-# LANGUAGE OverloadedStrings #-}
4{-# LANGUAGE OverloadedStrings #-}
5{-# LANGUAGE TemplateHaskell #-}
5{-# LANGUAGE TemplateHaskell #-}
7+module Data.YamlSpec (main, spec) where
7import qualified Text.Libyaml as Y
9import qualified Text.Libyaml as Y
8import qualified Data.ByteString.Char8 as B8
10import qualified Data.ByteString.Char8 as B8
@@ -41,7 +43,10 @@ data TestJSON = TestJSON
41deriveJSON defaultOptions ''TestJSON
43deriveJSON defaultOptions ''TestJSON
43main :: IO ()
45main :: IO ()
44−main = hspec $ do
46+main = hspec spec
45 describe "streaming" $ do
50 describe "streaming" $ do
46 it "count scalars with anchor" caseCountScalarsWithAnchor
51 it "count scalars with anchor" caseCountScalarsWithAnchor
47 it "count sequences with anchor" caseCountSequencesWithAnchor
52 it "count sequences with anchor" caseCountSequencesWithAnchor