From 7fcf1d61843cde87627b09730fbad01c7a9031be Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 27 Oct 2021 22:24:39 +0200 Subject: Lua: re-add `t` and `tag` property to Attr values Removal of these properties from Attr values was a regression. --- test/lua/module/pandoc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/lua') diff --git a/test/lua/module/pandoc.lua b/test/lua/module/pandoc.lua index 9b6e360f3..9d0663696 100644 --- a/test/lua/module/pandoc.lua +++ b/test/lua/module/pandoc.lua @@ -40,6 +40,13 @@ return { end ) }, + group 'Properties' { + test('has t and tag property', function () + local attr = pandoc.Attr('') + assert.are_equal(attr.t, 'Attr') + assert.are_equal(attr.tag, 'Attr') + end) + }, group 'AttributeList' { test('allows access via fields', function () local attributes = pandoc.Attr('', {}, {{'a', '1'}, {'b', '2'}}).attributes -- cgit v1.2.3