feat(json2go): support manual input

This commit is contained in:
Oleksandr Smirnov 2025-12-08 17:38:43 +02:00
parent 72dd68f25f
commit bc3ce2fdf4
No known key found for this signature in database
4 changed files with 18 additions and 2 deletions

View file

@ -14,6 +14,12 @@ json2go["should convert interativly"] = function()
end
json2go["should convert argument"] = function()
local rs = t.setup_test("json2go/manual", child, { 2, 0 })
child.cmd [[GoJson {"user": {"name": "user-ovic"}}]]
child.cmd "write"
t.eq(t.readfile(rs.tmp), rs.fixtures.output)
t.cleanup(rs)
end
return T