git.iko.soy/typeable/pandoc
on fa23eff help sign in
37 lines 1.1 kB history raw
1{- |
2Module : Tests.Lua.Module
3Copyright : © 2019-2021 Albert Krewinkel
4License : GNU GPL, version 2 or above
6Maintainer : Albert Krewinkel <albert@zeitkraut.de>
7Stability : alpha
8Portability : portable
10Lua module tests
11-}
12module Tests.Lua.Module (tests) where
14import System.FilePath ((</>))
15import Test.Tasty (TestName, TestTree)
16import Test.Tasty.Lua (testLuaFile)
18import Tests.Lua (runLuaTest)
20tests :: [TestTree]
21tests =
22 [ testPandocLua "pandoc"
23 ("lua" </> "module" </> "pandoc.lua")
24 , testPandocLua "pandoc.List"
25 ("lua" </> "module" </> "pandoc-list.lua")
26 , testPandocLua "pandoc.mediabag"
27 ("lua" </> "module" </> "pandoc-mediabag.lua")
28 , testPandocLua "pandoc.path"
29 ("lua" </> "module" </> "pandoc-path.lua")
30 , testPandocLua "pandoc.types"
31 ("lua" </> "module" </> "pandoc-types.lua")
32 , testPandocLua "pandoc.util"
33 ("lua" </> "module" </> "pandoc-utils.lua")
34 ]
36testPandocLua :: TestName -> FilePath -> TestTree
37testPandocLua = testLuaFile runLuaTest