aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2019-05-19 15:26:00 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2019-05-29 10:07:43 +0200
commit505f5bf5d951a5c4342f7acce9bea5f260dc9d78 (patch)
tree3b201baedf4003cdb17fa58c444bbb158faf213d /test/Tests/Lua
parentd07ed83d705df491bba7b295bd5e80629d971685 (diff)
downloadpandoc-505f5bf5d951a5c4342f7acce9bea5f260dc9d78.tar.gz
Lua: add Version type to simplify comparisons
Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are turned into `Version` objects. The objects simplify version-appropriate comparisons while maintaining backward-compatibility. A function `pandoc.types.Version` is added as part of the newly introduced module `pandoc.types`, allowing users to create version objects in scripts.
Diffstat (limited to 'test/Tests/Lua')
-rw-r--r--test/Tests/Lua/Module.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Tests/Lua/Module.hs b/test/Tests/Lua/Module.hs
index 82c9330e5..324acce04 100644
--- a/test/Tests/Lua/Module.hs
+++ b/test/Tests/Lua/Module.hs
@@ -20,7 +20,8 @@ import Tests.Lua (runLuaTest)
tests :: [TestTree]
tests =
[ testPandocLua "pandoc" ("lua" </> "module" </> "pandoc.lua")
- , testPandocLua "pandoc.util" ("lua" </> "module" </> "pandoc.utils.lua")
+ , testPandocLua "pandoc.types" ("lua" </> "module" </> "pandoc-types.lua")
+ , testPandocLua "pandoc.util" ("lua" </> "module" </> "pandoc-utils.lua")
]
testPandocLua :: TestName -> FilePath -> TestTree