tests: add test for printfmt
This commit is contained in:
parent
75096fdf99
commit
be1d3a1352
1 changed files with 7 additions and 0 deletions
7
test.lua
7
test.lua
|
@ -52,6 +52,10 @@ local tests = {
|
||||||
},
|
},
|
||||||
|
|
||||||
extra = {
|
extra = {
|
||||||
|
printfmt = function ()
|
||||||
|
printfmt("Testing %s (%d)", "printfmt", os.time())
|
||||||
|
return 'printfmt("Testing %%s (%%d)", ...)'
|
||||||
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
fs = {
|
fs = {
|
||||||
|
@ -216,6 +220,9 @@ do
|
||||||
test(environ.set)
|
test(environ.set)
|
||||||
test(environ.pairs)
|
test(environ.pairs)
|
||||||
|
|
||||||
|
-- extra
|
||||||
|
test(extra.printfmt)
|
||||||
|
|
||||||
-- fs
|
-- fs
|
||||||
test(fs.copy)
|
test(fs.copy)
|
||||||
test(fs.directory)
|
test(fs.directory)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue