diff options
| author | Albert Krewinkel <[email protected]> | 2022-09-29 09:45:14 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-09-30 08:33:40 -0700 |
| commit | ddaadc88bc7e09fdff35fcf100a0f9fbe5d17728 (patch) | |
| tree | bbddc6be332d8edcd5d78743b7ca259253bc07a3 /test | |
| parent | e099de1d4d2f4ca865596a6608774c7c0940a0d9 (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')
| -rw-r--r-- | test/Tests/Lua.hs | 4 |
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 |
