@@ -7,9 +7,9 @@ import Test.Tasty (TestTree, localOption)
77import Test.Tasty.HUnit (Assertion, assertEqual, testCase)
88import Test.Tasty.QuickCheck (QuickCheckTests (..), ioProperty, testProperty)
99import Text.Pandoc.Arbitrary ()
10−import Text.Pandoc.Builder (bulletList, doc, doubleQuoted, emph, linebreak,
11− para, plain, rawBlock, singleQuoted, space, str,
12− strong, (<>))
10+import Text.Pandoc.Builder (bulletList, doc, doubleQuoted, emph, header,
11+ linebreak, para, plain, rawBlock, singleQuoted,
12+ space, str, strong, (<>))
1313import Text.Pandoc.Class (runIOorExplode)
1414import Text.Pandoc.Definition (Block, Inline, Meta, Pandoc)
1515import Text.Pandoc.Lua
@@ -77,6 +77,12 @@ tests = map (localOption (QuickCheckTests 20))
7777 "block-count.lua"
7878 (doc $ para "one" <> para "two")
7979 (doc $ para "2")
80+
81+ , testCase "Convert header upper case" $
82+ assertFilterConversion "converting header to upper case failed"
83+ "uppercase-header.lua"
84+ (doc $ header 1 "les états-unis" <> para "text")
85+ (doc $ header 1 "LES ÉTATS-UNIS" <> para "text")
8086 ]
8187
8288assertFilterConversion :: String -> FilePath -> Pandoc -> Pandoc -> Assertion