From ddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 29 Sep 2022 09:45:14 +0200 Subject: [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. --- test/Tests/Lua.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3