Improve documentation and tests.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
local platform = ...
|
||||
print( 'platform', platform )
|
||||
--print( 'platform', platform )
|
||||
|
||||
-- simple io-library tests
|
||||
--
|
||||
|
||||
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
local platform = ...
|
||||
print( 'platform', platform )
|
||||
--print( 'platform', platform )
|
||||
|
||||
local aliases = {
|
||||
['0']='<zero>',
|
||||
|
||||
@@ -149,7 +149,10 @@ strtests('lower', string.lower, s )
|
||||
strtests('upper', string.upper, s )
|
||||
strtests('reverse', string.reverse, s )
|
||||
strtests('char', string.char, 92, 60, 61, 93 )
|
||||
print( 'string.dump test:', load(string.dump(function(x) return 'foo->'..x end),'bar')('bat') )
|
||||
stringdumptest = function()
|
||||
return load(string.dump(function(x) return 'foo->'..x end),'bar')('bat')
|
||||
end
|
||||
print( 'string.dump test:', pcall(stringdujptest) )
|
||||
|
||||
|
||||
-- floating point formats (not supported yet)
|
||||
|
||||
Reference in New Issue
Block a user