@@ -400,9 +400,15 @@ tests = [ testGroup "block elements"
400 , "[1] Foo"
400 , "[1] Foo"
402 , "span with class" =: spanWith ("",["foobar"],[]) (text "Some text")
402 , "span with class" =: spanWith ("",["foobar"],[]) (text "Some text")
403− =?> "<class name=\"foobar\">Some text</class>"
403+ =?> "<class name=\"foobar\">Some text</class>"
404+ , "span without class" =: spanWith ("",[],[]) (text "Some text")
405+ =?> "<class>Some text</class>"
404− , "span with anchor" =: spanWith ("anchor", [], []) (text "Foo bar")
406+ , "span with anchor" =: spanWith ("anchor", [], []) (mempty) <> (text "Foo bar")
405 =?> "#anchor Foo bar"
407 =?> "#anchor Foo bar"
408+ , "empty span with anchor" =: spanWith ("anchor", [], []) (mempty)
410+ , "empty span without class and anchor" =: spanWith ("", [], []) (mempty)
411+ =?> "<class><verbatim></verbatim></class>"
406 , "span with class and anchor" =: spanWith ("anchor", ["foo"], []) (text "bar")
412 , "span with class and anchor" =: spanWith ("anchor", ["foo"], []) (text "bar")
407 =?> "#anchor <class name=\"foo\">bar</class>"
413 =?> "#anchor <class name=\"foo\">bar</class>"
408 , "adjacent spans" =: spanWith ("", ["syllable"], []) (str "wa") <>
414 , "adjacent spans" =: spanWith ("", ["syllable"], []) (str "wa") <>