aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Lua.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Tests/Lua.hs b/test/Tests/Lua.hs
index 14800f7bb..bf9ddc2d5 100644
--- a/test/Tests/Lua.hs
+++ b/test/Tests/Lua.hs
@@ -172,6 +172,12 @@ tests = map (localOption (QuickCheckTests 20))
Lua.liftIO . assertEqual "pandoc-types version is wrong" pandocTypesVersion
=<< Lua.peek Lua.stackTop
+ , testCase "require file" $
+ assertFilterConversion "requiring file failed"
+ "require-file.lua"
+ (doc $ para "ignored")
+ (doc $ para (str . T.pack $ "lua" </> "require-file.lua"))
+
, testCase "Allow singleton inline in constructors" . runLuaTest $ do
Lua.liftIO . assertEqual "Not the exptected Emph" (Emph [Str "test"])
=<< Lua.callFunc "pandoc.Emph" (Str "test")