diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-08 23:26:38 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-08 23:26:38 +0100 |
commit | 78b142b880730bceaae7b9c0491e7f645d133380 (patch) | |
tree | d16a9acc4ae63bc500c413fca15e687e2669a714 /test/Tests | |
parent | 9f2707818bc125c0c14ab9d6c238c48bc00f2447 (diff) | |
download | pandoc-78b142b880730bceaae7b9c0491e7f645d133380.tar.gz |
data/pandoc.lua: cleanup code, remove cruft
Diffstat (limited to 'test/Tests')
-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 0f6619240..66dc2a6dd 100644 --- a/test/Tests/Lua.hs +++ b/test/Tests/Lua.hs @@ -120,7 +120,7 @@ tests = map (localOption (QuickCheckTests 20)) , testCase "Pandoc types version is set" . runPandocLua' $ do let versionNums = versionBranch pandocTypesVersion Lua.getglobal "PANDOC_API_VERSION" - Lua.liftIO . assertEqual "pandoc version is wrong" versionNums + Lua.liftIO . assertEqual "pandoc-types version is wrong" versionNums =<< Lua.peek Lua.stackTop ] @@ -145,7 +145,7 @@ roundtripEqual x = (x ==) <$> roundtripped error ("not exactly one additional element on the stack: " ++ show size) res <- Lua.peekEither (-1) case res of - Left _ -> error "could not read from stack" + Left e -> error (show e) Right y -> return y runPandocLua' :: Lua.Lua a -> IO a |