Merge lists in lazy.core.util.merge

This commit is contained in:
runiq 2023-01-12 22:10:21 +01:00
commit ea2ba4df23
2 changed files with 15 additions and 1 deletions

View file

@ -145,7 +145,11 @@ describe("util", function()
},
{
input = { { a = { 1, 2 } }, { a = { 3 } } },
output = { a = { 3 } },
output = { a = { 1, 2, 3 } },
},
{
input = { { a = { 1, 2 } }, { a = { 1, 3 } } },
output = { a = { 1, 2, 3 } },
},
{
input = { { b = { 1, 2 } }, { a = { 3 }, b = vim.NIL } },