From 505f5bf5d951a5c4342f7acce9bea5f260dc9d78 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 19 May 2019 15:26:00 +0200 Subject: 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. --- test/Tests/Lua/Module.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/Tests/Lua') 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 -- cgit v1.2.3