refactor: make it work on neovim version below 0.12
This commit is contained in:
parent
3ad6f73b57
commit
847d1b7190
3 changed files with 33 additions and 5 deletions
|
|
@ -46,4 +46,14 @@ utils["should add .indent() 2 tabs"] = function()
|
|||
t.eq("\t\t", u.indent(line, indent))
|
||||
end
|
||||
|
||||
utils["should .list_unique on list with duplicates"] = function()
|
||||
local u = require "gopher._utils"
|
||||
t.eq({ "json", "xml" }, u.list_unique { "json", "xml", "json" })
|
||||
end
|
||||
|
||||
utils["should .list_unique on list with no duplicates"] = function()
|
||||
local u = require "gopher._utils"
|
||||
t.eq({ "json", "xml" }, u.list_unique { "json", "xml" })
|
||||
end
|
||||
|
||||
return T
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue