From f3695bc5be49353a996af2fbd6d51e8367a778d0 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 12 Jan 2023 13:16:23 +0100 Subject: [PATCH] test: fixed tests for `Util.merge` --- tests/core/util_spec.lua | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/core/util_spec.lua b/tests/core/util_spec.lua index 7d16ca6..87102d3 100644 --- a/tests/core/util_spec.lua +++ b/tests/core/util_spec.lua @@ -148,25 +148,13 @@ describe("util", function() output = { a = { 3 } }, }, { - input = { { b = { 1, 2 } }, { a = { 3 }, __merge = false } }, + input = { { b = { 1, 2 } }, { a = { 3 }, b = vim.NIL } }, output = { a = { 3 } }, }, { - input = { { a = 1 }, { b = 2, __merge = false } }, + input = { { a = 1 }, { b = 2, a = vim.NIL } }, output = { b = 2 }, }, - { - input = { { a = { 1, 2 } }, { a = { 3, __merge = true } } }, - output = { a = { 1, 2, 3 } }, - }, - { - input = { { a = { 1, 2, __merge = true } }, { a = { 3 } } }, - output = { a = { 1, 2, 3 } }, - }, - { - input = { { a = { 1, 2, __merge = true } }, { a = { 3, __merge = false } } }, - output = { a = { 3 } }, - }, } for _, test in ipairs(tests) do