@@ -236,5 +236,29 @@ tests =
236 , " :END:"
236 , " :END:"
238 headerWith ("look", [], []) 1 "important"
238 headerWith ("look", [], []) 1 "important"
240+ , "third and forth level headers" =:
241+ T.unlines [ "#+OPTIONS: p:t h:3"
243+ , " CLOSED: [2018-09-05 Wed 13:58]"
246+ , "SCHEDULED: <2019-05-13 Mon 22:42>"
250+ [ headerWith ("third", [], mempty) 3 "Third"
252+ strong "CLOSED:" <> space <> emph (str "[2018-09-05 Wed 13:58]")
257+ , plain $ strong "SCHEDULED:"
259+ <> emph (str "<2019-05-13 Mon 22:42>")