aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-12-23 13:35:27 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2017-12-23 13:43:22 +0100
commit2c66a42ab81d40e771eda0f054c62f22ad45f3d0 (patch)
treede174a57e5cfc34dd85a1ae5304c302f1da1dbff /test/Tests
parent35f0567a8fe840ca65f8474d0293942c76a1220f (diff)
downloadpandoc-2c66a42ab81d40e771eda0f054c62f22ad45f3d0.tar.gz
Lua modules: add function pandoc.utils.normalize_date
The function parses a date and converts it (if possible) to "YYYY-MM-DD" format.
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Lua.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Tests/Lua.hs b/test/Tests/Lua.hs
index 956575911..7fb4309de 100644
--- a/test/Tests/Lua.hs
+++ b/test/Tests/Lua.hs
@@ -96,11 +96,12 @@ tests = map (localOption (QuickCheckTests 20))
assertFilterConversion "pandoc.utils doesn't work as expected."
"test-pandoc-utils.lua"
(doc $ para "doesn't matter")
- (doc $ mconcat [ plain (str "sha1: OK")
+ (doc $ mconcat [ plain (str "normalize_date: OK")
, plain (str "pipe: OK")
, plain (str "failing pipe: OK")
, plain (str "read: OK")
, plain (str "failing read: OK")
+ , plain (str "sha1: OK")
, plain (str "stringify: OK")
, plain (str "to_roman_numeral: OK")
])