aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Writers/RST.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Tests/Writers/RST.hs')
-rw-r--r--tests/Tests/Writers/RST.hs25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Tests/Writers/RST.hs b/tests/Tests/Writers/RST.hs
index 2a511782f..bb7b2a446 100644
--- a/tests/Tests/Writers/RST.hs
+++ b/tests/Tests/Writers/RST.hs
@@ -75,5 +75,30 @@ tests = [ testGroup "rubrics"
, ""
, "Header 2"
, "--------"]
+ , "minimal heading levels" =:
+ header 2 (text "Header 1") <>
+ header 3 (text "Header 2") <>
+ header 2 (text "Header 1") <>
+ header 4 (text "Header 2") <>
+ header 5 (text "Header 3") <>
+ header 3 (text "Header 2") =?>
+ unlines
+ [ "Header 1"
+ , "--------"
+ , ""
+ , "Header 2"
+ , "~~~~~~~~"
+ , ""
+ , "Header 1"
+ , "--------"
+ , ""
+ , "Header 2"
+ , "~~~~~~~~"
+ , ""
+ , "Header 3"
+ , "^^^^^^^^"
+ , ""
+ , "Header 2"
+ , "~~~~~~~~"]
]
]