mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +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_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()
|
local displayed = list:display()
|
||||||
|
|
||||||
eq(displayed, {
|
eq(displayed, {
|
||||||
"foo---bar",
|
"foo---bar",
|
||||||
|
"",
|
||||||
"baz---qux",
|
"baz---qux",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user