aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Lua.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-09-29 09:45:14 +0200
committerJohn MacFarlane <[email protected]>2022-09-30 08:33:40 -0700
commitddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 (patch)
treebbddc6be332d8edcd5d78743b7ca259253bc07a3 /test/Tests/Lua.hs
parente099de1d4d2f4ca865596a6608774c7c0940a0d9 (diff)
[API Change] Rename `pandocVersion` to `pandocVersionText`...
and add a new `pandocVersion` value with type `Version`. This is consistent with the type used for `pandocTypesVersion` and allows to use the value where a Version type is required.
Diffstat (limited to 'test/Tests/Lua.hs')
-rw-r--r--test/Tests/Lua.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tests/Lua.hs b/test/Tests/Lua.hs
index 3381c6dbf..0a6db0131 100644
--- a/test/Tests/Lua.hs
+++ b/test/Tests/Lua.hs
@@ -31,7 +31,7 @@ import Text.Pandoc.Error (PandocError (PandocLuaError))
import Text.Pandoc.Filter (Filter (LuaFilter), applyFilters)
import Text.Pandoc.Lua (Global (..), runLua, setGlobals)
import Text.Pandoc.Options (def)
-import Text.Pandoc.Shared (pandocVersion)
+import Text.Pandoc.Shared (pandocVersionText)
import qualified Control.Monad.Catch as Catch
import qualified Data.Text as T
@@ -149,7 +149,7 @@ tests =
, testCase "Pandoc version is set" . runLuaTest $ do
Lua.getglobal "PANDOC_VERSION"
Lua.liftIO .
- assertEqual "pandoc version is wrong" (TE.encodeUtf8 pandocVersion)
+ assertEqual "pandoc version is wrong" (TE.encodeUtf8 pandocVersionText)
=<< Lua.tostring' Lua.top
, testCase "Pandoc types version is set" . runLuaTest $ do