From c4814ea965704ffb3bc7cf5e918a2fc342d401b3 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Mon, 18 Feb 2019 15:09:29 +0300 Subject: Muse reader: add secondary note support --- test/Tests/Readers/Muse.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 8fbe6a955..e864cb46e 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -784,6 +784,23 @@ tests = para (text "Here is a footnote" <> note (para "Footnote contents") <> str ".") + , "Simple secondary footnote" =: + T.unlines [ "Here is a secondary note{1}." + , "" + , "{1} Secondary note contents" + ] =?> + para (text "Here is a secondary note" <> + note (para "Secondary note contents") <> + str ".") + , "Missing footnote" =: "Foo[1]" =?> para "Foo[1]" + , "Missing secondary note" =: "Foo{1}" =?> para "Foo{1}" + , "Wrong note type" =: + T.unlines [ "Here is a secondary note{1}" + , "" + , "Footnote contents[1]" + ] =?> + para "Here is a secondary note{1}" <> + para "Footnote contents[1]" , "Recursive footnote" =: T.unlines [ "Start recursion here[1]" , "" -- cgit v1.2.3