mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-13 17:40:25 +00:00
add nil entries to unit test cases
This commit is contained in:
parent
2ee09560e6
commit
0754d1cb7b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user