add nil entries to unit test cases

This commit is contained in:
Pedro Santi Binotto 2024-08-20 16:15:23 -03:00 committed by GitHub
parent 2ee09560e6
commit 0754d1cb7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,11 +22,16 @@ describe("list", function()
})
local list_config = Config.get_config(config, "foo")
local list = List.decode(list_config, "foo", { "foo:bar", "baz:qux" })
local list = List.decode(list_config, "foo", {
"foo:bar",
nil,
[3] = "baz:qux",
})
local displayed = list:display()
eq(displayed, {
"foo---bar",
"",
"baz---qux",
})
end)