@@ -99,11 +99,15 @@ tests = [ testGroup "base tag"
99 plain (codeWith ("",["sample"],[]) "Answer is 42")
99 plain (codeWith ("",["sample"],[]) "Answer is 42")
101 , testGroup "var"
101 , testGroup "var"
103− test html "inline var block" $
102+ [ test html "inline var block" $
104− "<var>result</var>" =?>
103+ "<var>result</var>" =?>
105− plain (codeWith ("",["variable"],[]) "result")
104+ plain (codeWith ("",["variable"],[]) "result")
106+ , testGroup "header"
107+ [ test htmlNativeDivs "<header> is parsed as a div" $
108+ "<header id=\"title\">Title</header>" =?>
109+ divWith ("title", mempty, mempty) (plain "Title")
107 , askOption $ \(QuickCheckTests numtests) ->
111 , askOption $ \(QuickCheckTests numtests) ->
108 testProperty "Round trip" $
112 testProperty "Round trip" $
109 withMaxSuccess (if QuickCheckTests numtests == defaultValue
113 withMaxSuccess (if QuickCheckTests numtests == defaultValue