refactor: make it work on neovim version below 0.12

This commit is contained in:
Oleksandr Smirnov 2025-10-29 15:40:05 +02:00
parent 3ad6f73b57
commit 847d1b7190
No known key found for this signature in database
3 changed files with 33 additions and 5 deletions

View file

@ -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