tests: add test for printfmt

This commit is contained in:
Jeremy Baxter 2024-03-26 16:28:49 +13:00
parent 75096fdf99
commit be1d3a1352

View file

@ -52,6 +52,10 @@ local tests = {
},
extra = {
printfmt = function ()
printfmt("Testing %s (%d)", "printfmt", os.time())
return 'printfmt("Testing %%s (%%d)", ...)'
end
},
fs = {
@ -216,6 +220,9 @@ do
test(environ.set)
test(environ.pairs)
-- extra
test(extra.printfmt)
-- fs
test(fs.copy)
test(fs.directory)