aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lua/module/pandoc.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lua/module/pandoc.lua b/test/lua/module/pandoc.lua
index b18a01faa..4e0b5188e 100644
--- a/test/lua/module/pandoc.lua
+++ b/test/lua/module/pandoc.lua
@@ -278,6 +278,19 @@ return {
end)
},
},
+ group 'MetaValue elements' {
+ test('MetaList elements behave like lists', function ()
+ local metalist = pandoc.MetaList{}
+ assert.are_equal(type(metalist.insert), 'function')
+ assert.are_equal(type(metalist.remove), 'function')
+ end),
+ test('MetaList, MetaMap, MetaInlines, MetaBlocks have `t` tag', function ()
+ assert.are_equal((pandoc.MetaList{}).t, 'MetaList')
+ assert.are_equal((pandoc.MetaMap{}).t, 'MetaMap')
+ assert.are_equal((pandoc.MetaInlines{}).t, 'MetaInlines')
+ assert.are_equal((pandoc.MetaBlocks{}).t, 'MetaBlocks')
+ end)
+ },
group 'Other types' {
group 'SimpleTable' {
test('can access properties', function ()