@@ -62,6 +62,12 @@ return {
6262 local assoc_list = setmetatable(attributes, nil)
6363 assert.are_same(assoc_list, {{'b', '2'}})
6464 end),
65+ test('remains unchanged if deleted key did not exist', function ()
66+ local assoc_list = pandoc.List:new {{'alpha', 'x'}, {'beta', 'y'}}
67+ local attributes = pandoc.Attr('', {}, assoc_list:clone()).attributes
68+ attributes.a = nil
69+ assert.are_same(pandoc.List:new(attributes), assoc_list)
70+ end),
6571 test('gives key-value pairs when iterated-over', function ()
6672 local attributes = {width = '11', height = '22', name = 'test'}
6773 local attr = pandoc.Attr('', {}, attributes)