pandoc/test/Tests/Lua/Module.hs

42 lines
1.3 KiB
Haskell
Raw Normal View History

{- |
Module : Tests.Lua.Module
2022-01-01 20:02:31 +01:00
Copyright : © 2019-2022 Albert Krewinkel
License : GNU GPL, version 2 or above
Maintainer : Albert Krewinkel <albert@zeitkraut.de>
Stability : alpha
Portability : portable
Lua module tests
-}
module Tests.Lua.Module (tests) where
import System.FilePath ((</>))
import Test.Tasty (TestName, TestTree)
import Test.Tasty.Lua (testLuaFile)
import Tests.Lua (runLuaTest)
tests :: [TestTree]
tests =
2019-05-30 08:44:40 +02:00
[ testPandocLua "pandoc"
("lua" </> "module" </> "pandoc.lua")
2020-01-11 14:32:29 +01:00
, testPandocLua "pandoc.List"
("lua" </> "module" </> "pandoc-list.lua")
2019-05-30 08:44:40 +02:00
, testPandocLua "pandoc.mediabag"
("lua" </> "module" </> "pandoc-mediabag.lua")
, testPandocLua "pandoc.path"
("lua" </> "module" </> "pandoc-path.lua")
, testPandocLua "pandoc.template"
("lua" </> "module" </> "pandoc-template.lua")
2019-05-30 08:44:40 +02:00
, testPandocLua "pandoc.types"
("lua" </> "module" </> "pandoc-types.lua")
, testPandocLua "pandoc.utils"
2019-05-30 08:44:40 +02:00
("lua" </> "module" </> "pandoc-utils.lua")
, testPandocLua "globals"
("lua" </> "module" </> "globals.lua")
]
testPandocLua :: TestName -> FilePath -> TestTree
testPandocLua = testLuaFile runLuaTest