aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-21 21:50:13 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-12-21 21:50:13 +0100
commit0bdf37315766eb4b785002ffaf38cdb724628e7a (patch)
tree620eee09f793545547a6ab9e1d0d629439dd81ae /test
parentedb04a78dba3490dc28ef68d5133b0220a0426fa (diff)
downloadpandoc-0bdf37315766eb4b785002ffaf38cdb724628e7a.tar.gz
Lua: simplify code of pandoc.utils.stringify
Minor behavior change: plain strings nested in tables are now included in the result string.
Diffstat (limited to 'test')
-rw-r--r--test/lua/module/pandoc-utils.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lua/module/pandoc-utils.lua b/test/lua/module/pandoc-utils.lua
index 73886346c..0475e96ec 100644
--- a/test/lua/module/pandoc-utils.lua
+++ b/test/lua/module/pandoc-utils.lua
@@ -181,12 +181,11 @@ return {
end),
test('Meta', function ()
local meta = pandoc.Meta{
- a = pandoc.Inlines 'a text',
- b = 'movie',
+ a = pandoc.Inlines 'funny and ',
+ b = 'good movie',
c = pandoc.List{pandoc.Inlines{pandoc.Str '!'}}
}
- -- nested MetaString values are not stringified.
- assert.are_equal('a text!', utils.stringify(meta))
+ assert.are_equal('funny and good movie!', utils.stringify(meta))
end),
},