diff options
Diffstat (limited to 'test/Tests/Lua')
-rw-r--r-- | test/Tests/Lua/Module.hs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/Tests/Lua/Module.hs b/test/Tests/Lua/Module.hs new file mode 100644 index 000000000..82c9330e5 --- /dev/null +++ b/test/Tests/Lua/Module.hs @@ -0,0 +1,27 @@ +{- | +Module : Tests.Lua.Module +Copyright : © 2019 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 = + [ testPandocLua "pandoc" ("lua" </> "module" </> "pandoc.lua") + , testPandocLua "pandoc.util" ("lua" </> "module" </> "pandoc.utils.lua") + ] + +testPandocLua :: TestName -> FilePath -> TestTree +testPandocLua = testLuaFile runLuaTest |