refactor(tests): clean up everywhere

This commit is contained in:
Oleksandr Smirnov 2025-03-22 20:12:25 +02:00
parent 1cb507fa40
commit b2780c8efb
No known key found for this signature in database
6 changed files with 30 additions and 7 deletions

View file

@ -18,6 +18,7 @@ T["impl"]["works w io.Writer"] = function()
-- NOTE: since "impl" won't implement interface if it's already implemented i went with this hack
local rhs = rs.fixtures.output:gsub("Test2", "Test")
t.eq(t.readfile(rs.tmp), rhs)
t.cleanup(rs)
end
T["impl"]["works r Read io.Reader"] = function()
@ -27,6 +28,7 @@ T["impl"]["works r Read io.Reader"] = function()
local rhs = rs.fixtures.output:gsub("Read2", "Read")
t.eq(t.readfile(rs.tmp), rhs)
t.cleanup(rs)
end
T["impl"]["works io.Closer"] = function()
@ -36,6 +38,7 @@ T["impl"]["works io.Closer"] = function()
local rhs = rs.fixtures.output:gsub("Test2", "Test")
t.eq(t.readfile(rs.tmp), rhs)
t.cleanup(rs)
end
return T