test: add skip and fix paths
This commit is contained in:
parent
e293180359
commit
69c51692e7
2 changed files with 14 additions and 13 deletions
|
|
@ -11,7 +11,7 @@ local T = MiniTest.new_set {
|
||||||
}
|
}
|
||||||
T["iferr"] = MiniTest.new_set {}
|
T["iferr"] = MiniTest.new_set {}
|
||||||
T["iferr"]["works"] = function()
|
T["iferr"]["works"] = function()
|
||||||
local tmp = vim.env.HOME .. "/test.go"
|
local tmp = t.tmpfile()
|
||||||
|
|
||||||
local fixtures = t.fixtures.read "iferr/iferr"
|
local fixtures = t.fixtures.read "iferr/iferr"
|
||||||
t.fixtures.write(tmp, fixtures.input)
|
t.fixtures.write(tmp, fixtures.input)
|
||||||
|
|
|
||||||
|
|
@ -11,18 +11,19 @@ local T = MiniTest.new_set {
|
||||||
}
|
}
|
||||||
T["struct_tags"] = MiniTest.new_set {}
|
T["struct_tags"] = MiniTest.new_set {}
|
||||||
T["struct_tags"][".add"] = function()
|
T["struct_tags"][".add"] = function()
|
||||||
t.eq(1, 1)
|
MiniTest.skip()
|
||||||
-- local tmp = vim.env.HOME .. "/test.go"
|
|
||||||
--
|
local tmp = vim.env.HOME .. "/test.go"
|
||||||
-- local fixtures = t.fixtures.read "tags/add"
|
|
||||||
-- t.fixtures.write(tmp, fixtures.input)
|
local fixtures = t.fixtures.read "tags/add"
|
||||||
--
|
t.fixtures.write(tmp, fixtures.input)
|
||||||
-- child.cmd("silent edit " .. tmp)
|
|
||||||
-- child.fn.setpos(".", { child.fn.bufnr "%", 3, 6, 0 })
|
child.cmd("silent edit " .. tmp)
|
||||||
-- child.cmd "GoTagAdd json"
|
child.fn.setpos(".", { child.fn.bufnr "%", 3, 6, 0 })
|
||||||
-- child.cmd "write"
|
child.cmd "GoTagAdd json"
|
||||||
--
|
child.cmd "write"
|
||||||
-- t.eq(t.readfile(tmp), fixtures.output)
|
|
||||||
|
t.eq(t.readfile(tmp), fixtures.output)
|
||||||
end
|
end
|
||||||
|
|
||||||
return T
|
return T
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue