added commandline and stdin tests using testscript

This commit is contained in:
2023-12-07 13:42:41 +01:00
parent d2db420837
commit d0376a63e3
22 changed files with 131 additions and 7 deletions

13
t/test.lua Normal file
View File

@@ -0,0 +1,13 @@
-- simple function, return the lower number of the two operands
function lower(a,b)
if a < b then
return a
else
return b
end
end
function init()
-- expects 2 args
register("lower", 2, "lower")
end