aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2017-11-13 18:41:30 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2017-11-13 18:41:49 +0300
commit3a83b3843db6434e9806558ea1e912055d5baf04 (patch)
treeba8ae5cdcedf55e752f9325705f739ee3f48421d /test/Tests/Readers
parente5e8350fcb3ea321efc28aaf88413677b3c97613 (diff)
downloadpandoc-3a83b3843db6434e9806558ea1e912055d5baf04.tar.gz
Replace "emacs" extension with "amuse" extension
It makes clear that extension is related to Muse markup.
Diffstat (limited to 'test/Tests/Readers')
-rw-r--r--test/Tests/Readers/Muse.hs12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 29cef09ca..b4e5dd05e 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -10,20 +10,16 @@ import Text.Pandoc
import Text.Pandoc.Arbitrary ()
import Text.Pandoc.Builder
-muse :: Text -> Pandoc
-muse = purely $ \s -> do
- setInputFiles ["in"]
- setOutputFile (Just "out")
- readMuse def s
+amuse :: Text -> Pandoc
+amuse = purely $ readMuse def { readerExtensions = extensionsFromList [Ext_amuse]}
emacsMuse :: Text -> Pandoc
-emacsMuse = purely $ readMuse def { readerExtensions =
- enableExtension Ext_emacs pandocExtensions }
+emacsMuse = purely $ readMuse def { readerExtensions = emptyExtensions }
infix 4 =:
(=:) :: ToString c
=> String -> (Text, c) -> TestTree
-(=:) = test muse
+(=:) = test amuse
spcSep :: [Inlines] -> Inlines
spcSep = mconcat . intersperse space