From be1d3a135264fcf6e0c968eb9b90abbfa1e9fb72 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Tue, 26 Mar 2024 16:28:49 +1300 Subject: [PATCH] tests: add test for printfmt --- test.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test.lua b/test.lua index 731b220..8ce6681 100644 --- a/test.lua +++ b/test.lua @@ -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)