aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-11-28 15:07:30 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-11-28 16:02:42 +0100
commitb9222e5cb1d8d1d3217f65c6a91886b897956dde (patch)
treeb08aa67eab72a6c2858a2c3a243680f25e2d7017 /test
parent4874f2dbd24ef8dbc078a1b81184c91524c93efb (diff)
downloadpandoc-b9222e5cb1d8d1d3217f65c6a91886b897956dde.tar.gz
Lua: add constructors `pandoc.Blocks` and `pandoc.Inlines`
The functions convert their argument into a list of Block and Inline values, respectively.
Diffstat (limited to 'test')
-rw-r--r--test/lua/module/pandoc.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lua/module/pandoc.lua b/test/lua/module/pandoc.lua
index 1cf777675..892ffee03 100644
--- a/test/lua/module/pandoc.lua
+++ b/test/lua/module/pandoc.lua
@@ -19,9 +19,15 @@ return {
test('pandoc.AttributeList is a function', function ()
assert.are_equal(type(pandoc.AttributeList), 'function')
end),
+ test('pandoc.Blocks is a function', function ()
+ assert.are_equal(type(pandoc.Blocks), 'function')
+ end),
test('pandoc.Citation is a function', function ()
assert.are_equal(type(pandoc.Citation), 'function')
end),
+ test('pandoc.Inlines is a function', function ()
+ assert.are_equal(type(pandoc.Inlines), 'function')
+ end),
test('pandoc.SimpleTable is a function', function ()
assert.are_equal(type(pandoc.SimpleTable), 'function')
end),