{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE QuasiQuotes #-} module Samples ( testSamples ) where import Zenacy.HTML import Data.Default ( Default(..) ) import Test.Framework ( Test , testGroup ) import Test.Framework.Providers.HUnit ( testCase ) import Test.HUnit ( assertBool , assertEqual , assertFailure ) import Data.Maybe ( fromJust , fromMaybe ) import Data.Text ( Text ) import qualified Data.Text as T ( pack ) import Text.RawString.QQ testSamples :: Test testSamples = testGroup "Samples" [ testHello , testRewrite , testExtract , testQuery , testQuery2 ] testHello :: Test testHello = testCase "sample hello" $ do flip (assertEqual "Sample 1") (htmlRender $ htmlParseEasy "