Extract luaj3.0-tests.zip to luaj-test/src/test/resources and delete it
This commit is contained in:
530
luaj-test/src/test/resources/errors/baselibargs.out
Normal file
530
luaj-test/src/test/resources/errors/baselibargs.out
Normal file
@@ -0,0 +1,530 @@
|
||||
====== assert ======
|
||||
--- checkallpass
|
||||
- assert(true,nil) true
|
||||
- assert(123,nil) 123
|
||||
- assert(true,'abc') true,'abc'
|
||||
- assert(123,'abc') 123,'abc'
|
||||
- assert(true,1.25) true,1.25
|
||||
- assert(123,1.25) 123,1.25
|
||||
- assert(true,true) true,true
|
||||
- assert(123,true) 123,true
|
||||
- assert(true,<table>) true,<table>
|
||||
- assert(123,<table>) 123,<table>
|
||||
- assert(true,<function>) true,<function>
|
||||
- assert(123,<function>) 123,<function>
|
||||
- assert(true,<thread>) true,<thread>
|
||||
- assert(123,<thread>) 123,<thread>
|
||||
--- checkallerrors
|
||||
- assert(nil,nil) ...assertion failed...
|
||||
- assert(false,nil) ...assertion failed...
|
||||
--- checkallerrors
|
||||
- assert(nil,'message') ...message...
|
||||
- assert(false,'message') ...message...
|
||||
====== collectgarbage ======
|
||||
--- checkallpass
|
||||
- collectgarbage('collect') number
|
||||
- collectgarbage('count') number,number
|
||||
--- checkallerrors
|
||||
- collectgarbage('abc') ...bad argument...
|
||||
- collectgarbage(1.25) ...bad argument...
|
||||
--- checkallerrors
|
||||
- collectgarbage(true) ...string expected...
|
||||
- collectgarbage(<table>) ...string expected...
|
||||
- collectgarbage(<function>) ...string expected...
|
||||
- collectgarbage(<thread>) ...string expected...
|
||||
====== dofile ======
|
||||
====== error ======
|
||||
====== getmetatable ======
|
||||
--- checkallpass
|
||||
- getmetatable('abc') <table>
|
||||
- getmetatable(1.25)
|
||||
- getmetatable(true)
|
||||
- getmetatable(<table>)
|
||||
- getmetatable(<function>)
|
||||
- getmetatable(<thread>)
|
||||
--- checkallerrors
|
||||
- getmetatable() ...bad argument...
|
||||
====== ipairs ======
|
||||
--- checkallpass
|
||||
- ipairs(<table>) <function>,<table>,0
|
||||
--- checkallerrors
|
||||
- ipairs(nil) ...bad argument...
|
||||
- ipairs('abc') ...bad argument...
|
||||
- ipairs(1.25) ...bad argument...
|
||||
- ipairs(true) ...bad argument...
|
||||
- ipairs(<function>) ...bad argument...
|
||||
- ipairs(<thread>) ...bad argument...
|
||||
====== load ======
|
||||
--- checkallpass
|
||||
- load(<function>,nil) <function>
|
||||
- load(<function>,'abc') <function>
|
||||
--- checkallerrors
|
||||
- load(nil,nil) ...bad argument...
|
||||
needcheck load('abc',nil) nil
|
||||
needcheck load(1.25,nil) nil
|
||||
- load(true,nil) ...bad argument...
|
||||
- load(<table>,nil) ...bad argument...
|
||||
- load(<thread>,nil) ...bad argument...
|
||||
- load(nil,'abc') ...bad argument...
|
||||
needcheck load('abc','abc') nil
|
||||
needcheck load(1.25,'abc') nil
|
||||
- load(true,'abc') ...bad argument...
|
||||
- load(<table>,'abc') ...bad argument...
|
||||
- load(<thread>,'abc') ...bad argument...
|
||||
- load(nil,1.25) ...bad argument...
|
||||
needcheck load('abc',1.25) nil
|
||||
needcheck load(1.25,1.25) nil
|
||||
- load(true,1.25) ...bad argument...
|
||||
- load(<table>,1.25) ...bad argument...
|
||||
- load(<thread>,1.25) ...bad argument...
|
||||
--- checkallerrors
|
||||
- load(<function>,<function>) ...bad argument...
|
||||
- load(<function>,<table>) ...bad argument...
|
||||
====== loadfile ======
|
||||
====== load ======
|
||||
--- checkallpass
|
||||
- load('return') <function>
|
||||
--- checkallpass
|
||||
- load('return','mychunk') <function>
|
||||
--- checkallpass
|
||||
- load('return a ... b','mychunk') nil,string
|
||||
--- checkallerrors
|
||||
- load(nil,nil) ...bad argument...
|
||||
- load(true,nil) ...bad argument...
|
||||
- load(<table>,nil) ...bad argument...
|
||||
needcheck load(<function>,nil) function: 0x10011ba00
|
||||
- load(<thread>,nil) ...bad argument...
|
||||
- load(nil,'abc') ...bad argument...
|
||||
- load(true,'abc') ...bad argument...
|
||||
- load(<table>,'abc') ...bad argument...
|
||||
needcheck load(<function>,'abc') function: 0x10011c780
|
||||
- load(<thread>,'abc') ...bad argument...
|
||||
- load(nil,1.25) ...bad argument...
|
||||
- load(true,1.25) ...bad argument...
|
||||
- load(<table>,1.25) ...bad argument...
|
||||
needcheck load(<function>,1.25) function: 0x10011d560
|
||||
- load(<thread>,1.25) ...bad argument...
|
||||
--- checkallerrors
|
||||
- load('return',<function>) ...bad argument...
|
||||
- load('return',<table>) ...bad argument...
|
||||
====== next ======
|
||||
--- checkallpass
|
||||
- next(<table>,'aa')
|
||||
--- checkallerrors
|
||||
- next(nil,nil) ...bad argument...
|
||||
- next('abc',nil) ...bad argument...
|
||||
- next(1.25,nil) ...bad argument...
|
||||
- next(true,nil) ...bad argument...
|
||||
- next(<function>,nil) ...bad argument...
|
||||
- next(<thread>,nil) ...bad argument...
|
||||
- next(nil,1) ...bad argument...
|
||||
- next('abc',1) ...bad argument...
|
||||
- next(1.25,1) ...bad argument...
|
||||
- next(true,1) ...bad argument...
|
||||
- next(<function>,1) ...bad argument...
|
||||
- next(<thread>,1) ...bad argument...
|
||||
--- checkallerrors
|
||||
- next(<table>,'abc') ...invalid key...
|
||||
- next(<table>,1.25) ...invalid key...
|
||||
- next(<table>,true) ...invalid key...
|
||||
- next(<table>,<table>) ...invalid key...
|
||||
- next(<table>,<function>) ...invalid key...
|
||||
====== pairs ======
|
||||
--- checkallpass
|
||||
- pairs(<table>) <function>,<table>
|
||||
--- checkallerrors
|
||||
- pairs(nil) ...bad argument...
|
||||
- pairs('abc') ...bad argument...
|
||||
- pairs(1.25) ...bad argument...
|
||||
- pairs(true) ...bad argument...
|
||||
- pairs(<function>) ...bad argument...
|
||||
- pairs(<thread>) ...bad argument...
|
||||
====== pcall ======
|
||||
--- checkallpass
|
||||
- pcall('abc',nil) boolean,string
|
||||
- pcall(1.25,nil) boolean,string
|
||||
- pcall(true,nil) boolean,string
|
||||
- pcall(<table>,nil) boolean,string
|
||||
- pcall(<function>,nil) boolean
|
||||
- pcall(<thread>,nil) boolean,string
|
||||
- pcall('abc','abc') boolean,string
|
||||
- pcall(1.25,'abc') boolean,string
|
||||
- pcall(true,'abc') boolean,string
|
||||
- pcall(<table>,'abc') boolean,string
|
||||
- pcall(<function>,'abc') boolean
|
||||
- pcall(<thread>,'abc') boolean,string
|
||||
- pcall('abc',1.25) boolean,string
|
||||
- pcall(1.25,1.25) boolean,string
|
||||
- pcall(true,1.25) boolean,string
|
||||
- pcall(<table>,1.25) boolean,string
|
||||
- pcall(<function>,1.25) boolean
|
||||
- pcall(<thread>,1.25) boolean,string
|
||||
- pcall('abc',true) boolean,string
|
||||
- pcall(1.25,true) boolean,string
|
||||
- pcall(true,true) boolean,string
|
||||
- pcall(<table>,true) boolean,string
|
||||
- pcall(<function>,true) boolean
|
||||
- pcall(<thread>,true) boolean,string
|
||||
- pcall('abc',<table>) boolean,string
|
||||
- pcall(1.25,<table>) boolean,string
|
||||
- pcall(true,<table>) boolean,string
|
||||
- pcall(<table>,<table>) boolean,string
|
||||
- pcall(<function>,<table>) boolean
|
||||
- pcall(<thread>,<table>) boolean,string
|
||||
- pcall('abc',<function>) boolean,string
|
||||
- pcall(1.25,<function>) boolean,string
|
||||
- pcall(true,<function>) boolean,string
|
||||
- pcall(<table>,<function>) boolean,string
|
||||
- pcall(<function>,<function>) boolean
|
||||
- pcall(<thread>,<function>) boolean,string
|
||||
- pcall('abc',<thread>) boolean,string
|
||||
- pcall(1.25,<thread>) boolean,string
|
||||
- pcall(true,<thread>) boolean,string
|
||||
- pcall(<table>,<thread>) boolean,string
|
||||
- pcall(<function>,<thread>) boolean
|
||||
- pcall(<thread>,<thread>) boolean,string
|
||||
--- checkallerrors
|
||||
- pcall() ...bad argument...
|
||||
====== print ======
|
||||
--- checkallpass
|
||||
|
||||
- print()
|
||||
--- checkallpass
|
||||
nil
|
||||
- print(nil)
|
||||
abc
|
||||
- print('abc')
|
||||
1.25
|
||||
- print(1.25)
|
||||
true
|
||||
- print(true)
|
||||
====== rawequal ======
|
||||
--- checkallpass
|
||||
- rawequal('abc','abc') true
|
||||
- rawequal(1.25,'abc') false
|
||||
- rawequal(true,'abc') false
|
||||
- rawequal(<table>,'abc') false
|
||||
- rawequal(<function>,'abc') false
|
||||
- rawequal(<thread>,'abc') false
|
||||
- rawequal('abc',1.25) false
|
||||
- rawequal(1.25,1.25) true
|
||||
- rawequal(true,1.25) false
|
||||
- rawequal(<table>,1.25) false
|
||||
- rawequal(<function>,1.25) false
|
||||
- rawequal(<thread>,1.25) false
|
||||
- rawequal('abc',true) false
|
||||
- rawequal(1.25,true) false
|
||||
- rawequal(true,true) true
|
||||
- rawequal(<table>,true) false
|
||||
- rawequal(<function>,true) false
|
||||
- rawequal(<thread>,true) false
|
||||
- rawequal('abc',<table>) false
|
||||
- rawequal(1.25,<table>) false
|
||||
- rawequal(true,<table>) false
|
||||
- rawequal(<table>,<table>) true
|
||||
- rawequal(<function>,<table>) false
|
||||
- rawequal(<thread>,<table>) false
|
||||
- rawequal('abc',<function>) false
|
||||
- rawequal(1.25,<function>) false
|
||||
- rawequal(true,<function>) false
|
||||
- rawequal(<table>,<function>) false
|
||||
- rawequal(<function>,<function>) true
|
||||
- rawequal(<thread>,<function>) false
|
||||
- rawequal('abc',<thread>) false
|
||||
- rawequal(1.25,<thread>) false
|
||||
- rawequal(true,<thread>) false
|
||||
- rawequal(<table>,<thread>) false
|
||||
- rawequal(<function>,<thread>) false
|
||||
- rawequal(<thread>,<thread>) true
|
||||
--- checkallerrors
|
||||
- rawequal() ...bad argument...
|
||||
--- checkallerrors
|
||||
- rawequal('abc') ...bad argument...
|
||||
- rawequal(1.25) ...bad argument...
|
||||
- rawequal(true) ...bad argument...
|
||||
- rawequal(<table>) ...bad argument...
|
||||
- rawequal(<function>) ...bad argument...
|
||||
- rawequal(<thread>) ...bad argument...
|
||||
====== rawget ======
|
||||
--- checkallpass
|
||||
- rawget(<table>,'aa') 456
|
||||
--- checkallpass
|
||||
- rawget(<table>,'abc')
|
||||
- rawget(<table>,1.25)
|
||||
- rawget(<table>,true)
|
||||
- rawget(<table>,<table>)
|
||||
- rawget(<table>,<function>)
|
||||
--- checkallerrors
|
||||
--- checkallerrors
|
||||
- rawget(nil,'abc') ...bad argument...
|
||||
- rawget('abc','abc') ...bad argument...
|
||||
- rawget(1.25,'abc') ...bad argument...
|
||||
- rawget(true,'abc') ...bad argument...
|
||||
- rawget(<function>,'abc') ...bad argument...
|
||||
- rawget(<thread>,'abc') ...bad argument...
|
||||
- rawget(nil,1.25) ...bad argument...
|
||||
- rawget('abc',1.25) ...bad argument...
|
||||
- rawget(1.25,1.25) ...bad argument...
|
||||
- rawget(true,1.25) ...bad argument...
|
||||
- rawget(<function>,1.25) ...bad argument...
|
||||
- rawget(<thread>,1.25) ...bad argument...
|
||||
- rawget(nil,true) ...bad argument...
|
||||
- rawget('abc',true) ...bad argument...
|
||||
- rawget(1.25,true) ...bad argument...
|
||||
- rawget(true,true) ...bad argument...
|
||||
- rawget(<function>,true) ...bad argument...
|
||||
- rawget(<thread>,true) ...bad argument...
|
||||
- rawget(nil,<table>) ...bad argument...
|
||||
- rawget('abc',<table>) ...bad argument...
|
||||
- rawget(1.25,<table>) ...bad argument...
|
||||
- rawget(true,<table>) ...bad argument...
|
||||
- rawget(<function>,<table>) ...bad argument...
|
||||
- rawget(<thread>,<table>) ...bad argument...
|
||||
- rawget(nil,<function>) ...bad argument...
|
||||
- rawget('abc',<function>) ...bad argument...
|
||||
- rawget(1.25,<function>) ...bad argument...
|
||||
- rawget(true,<function>) ...bad argument...
|
||||
- rawget(<function>,<function>) ...bad argument...
|
||||
- rawget(<thread>,<function>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- rawget() ...bad argument...
|
||||
====== rawset ======
|
||||
--- checkallpass
|
||||
- rawset(<table>,'aa','abc') <table>
|
||||
- rawset(<table>,'aa',1.25) <table>
|
||||
- rawset(<table>,'aa',true) <table>
|
||||
- rawset(<table>,'aa',<table>) <table>
|
||||
- rawset(<table>,'aa',<function>) <table>
|
||||
- rawset(<table>,'aa',<thread>) <table>
|
||||
--- checkallpass
|
||||
- rawset(<table>,'abc','abc') <table>
|
||||
- rawset(<table>,1.25,'abc') <table>
|
||||
- rawset(<table>,true,'abc') <table>
|
||||
- rawset(<table>,<table>,'abc') <table>
|
||||
- rawset(<table>,<function>,'abc') <table>
|
||||
- rawset(<table>,'abc',1.25) <table>
|
||||
- rawset(<table>,1.25,1.25) <table>
|
||||
- rawset(<table>,true,1.25) <table>
|
||||
- rawset(<table>,<table>,1.25) <table>
|
||||
- rawset(<table>,<function>,1.25) <table>
|
||||
- rawset(<table>,'abc',true) <table>
|
||||
- rawset(<table>,1.25,true) <table>
|
||||
- rawset(<table>,true,true) <table>
|
||||
- rawset(<table>,<table>,true) <table>
|
||||
- rawset(<table>,<function>,true) <table>
|
||||
- rawset(<table>,'abc',<table>) <table>
|
||||
- rawset(<table>,1.25,<table>) <table>
|
||||
- rawset(<table>,true,<table>) <table>
|
||||
- rawset(<table>,<table>,<table>) <table>
|
||||
- rawset(<table>,<function>,<table>) <table>
|
||||
- rawset(<table>,'abc',<function>) <table>
|
||||
- rawset(<table>,1.25,<function>) <table>
|
||||
- rawset(<table>,true,<function>) <table>
|
||||
- rawset(<table>,<table>,<function>) <table>
|
||||
- rawset(<table>,<function>,<function>) <table>
|
||||
- rawset(<table>,'abc',<thread>) <table>
|
||||
- rawset(<table>,1.25,<thread>) <table>
|
||||
- rawset(<table>,true,<thread>) <table>
|
||||
- rawset(<table>,<table>,<thread>) <table>
|
||||
- rawset(<table>,<function>,<thread>) <table>
|
||||
--- checkallerrors
|
||||
--- checkallerrors
|
||||
- rawset() ...bad argument...
|
||||
--- checkallerrors
|
||||
- rawset(nil,'abc','abc') ...bad argument...
|
||||
- rawset('abc','abc','abc') ...bad argument...
|
||||
- rawset(1.25,'abc','abc') ...bad argument...
|
||||
- rawset(true,'abc','abc') ...bad argument...
|
||||
- rawset(<function>,'abc','abc') ...bad argument...
|
||||
- rawset(<thread>,'abc','abc') ...bad argument...
|
||||
- rawset(nil,1.25,'abc') ...bad argument...
|
||||
- rawset('abc',1.25,'abc') ...bad argument...
|
||||
- rawset(1.25,1.25,'abc') ...bad argument...
|
||||
- rawset(true,1.25,'abc') ...bad argument...
|
||||
- rawset(<function>,1.25,'abc') ...bad argument...
|
||||
- rawset(<thread>,1.25,'abc') ...bad argument...
|
||||
- rawset(nil,'abc',1.25) ...bad argument...
|
||||
- rawset('abc','abc',1.25) ...bad argument...
|
||||
- rawset(1.25,'abc',1.25) ...bad argument...
|
||||
- rawset(true,'abc',1.25) ...bad argument...
|
||||
- rawset(<function>,'abc',1.25) ...bad argument...
|
||||
- rawset(<thread>,'abc',1.25) ...bad argument...
|
||||
- rawset(nil,1.25,1.25) ...bad argument...
|
||||
- rawset('abc',1.25,1.25) ...bad argument...
|
||||
- rawset(1.25,1.25,1.25) ...bad argument...
|
||||
- rawset(true,1.25,1.25) ...bad argument...
|
||||
- rawset(<function>,1.25,1.25) ...bad argument...
|
||||
- rawset(<thread>,1.25,1.25) ...bad argument...
|
||||
--- checkallerrors
|
||||
- rawset(<table>,'aa') ...bad argument...
|
||||
====== select ======
|
||||
--- checkallpass
|
||||
- select(1.25,nil)
|
||||
- select('#',nil) 1
|
||||
- select(1.25,'abc') 'abc'
|
||||
- select('#','abc') 1
|
||||
- select(1.25,1.25) 1.25
|
||||
- select('#',1.25) 1
|
||||
- select(1.25,true) true
|
||||
- select('#',true) 1
|
||||
- select(1.25,<table>) <table>
|
||||
- select('#',<table>) 1
|
||||
- select(1.25,<function>) <function>
|
||||
- select('#',<function>) 1
|
||||
- select(1.25,<thread>) <thread>
|
||||
- select('#',<thread>) 1
|
||||
--- checkallerrors
|
||||
- select(nil) ...bad argument...
|
||||
- select('abc') ...bad argument...
|
||||
- select(true) ...bad argument...
|
||||
- select(<table>) ...bad argument...
|
||||
- select(<function>) ...bad argument...
|
||||
- select(<thread>) ...bad argument...
|
||||
====== setmetatable ======
|
||||
--- checkallpass
|
||||
- setmetatable(<table>,<table>) <table>
|
||||
--- checkallpass
|
||||
--- checkallerrors
|
||||
- setmetatable(nil,<table>) ...bad argument...
|
||||
- setmetatable('abc',<table>) ...bad argument...
|
||||
- setmetatable(1.25,<table>) ...bad argument...
|
||||
- setmetatable(true,<table>) ...bad argument...
|
||||
- setmetatable(<function>,<table>) ...bad argument...
|
||||
- setmetatable(<thread>,<table>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- setmetatable(<table>,'abc') ...bad argument...
|
||||
- setmetatable(<table>,1.25) ...bad argument...
|
||||
- setmetatable(<table>,true) ...bad argument...
|
||||
- setmetatable(<table>,<function>) ...bad argument...
|
||||
- setmetatable(<table>,<thread>) ...bad argument...
|
||||
====== tonumber ======
|
||||
--- checkallpass
|
||||
- tonumber(1.25,nil) 1.25
|
||||
- tonumber('789',nil) 789
|
||||
- tonumber(1.25,2)
|
||||
- tonumber('789',2)
|
||||
- tonumber(1.25,10)
|
||||
- tonumber('789',10) 789
|
||||
- tonumber(1.25,36)
|
||||
- tonumber('789',36) 9369
|
||||
--- checkallpass
|
||||
- tonumber('abc',nil)
|
||||
- tonumber(1.25,nil) 1.25
|
||||
- tonumber(true,nil)
|
||||
- tonumber(<table>,nil)
|
||||
- tonumber(<function>,nil)
|
||||
- tonumber(<thread>,nil)
|
||||
- tonumber('abc',10)
|
||||
- tonumber(1.25,10)
|
||||
fail tonumber(true,10) 'bad argument #1 to '_G.tonumber' (string expected, got boolean)'
|
||||
fail tonumber(<table>,10) 'bad argument #1 to '_G.tonumber' (string expected, got table)'
|
||||
fail tonumber(<function>,10) 'bad argument #1 to '_G.tonumber' (string expected, got function)'
|
||||
fail tonumber(<thread>,10) 'bad argument #1 to '_G.tonumber' (string expected, got thread)'
|
||||
--- checkallerrors
|
||||
- tonumber(nil,2) ...bad argument...
|
||||
- tonumber(<function>,2) ...bad argument...
|
||||
- tonumber(<table>,2) ...bad argument...
|
||||
- tonumber(nil,9) ...bad argument...
|
||||
- tonumber(<function>,9) ...bad argument...
|
||||
- tonumber(<table>,9) ...bad argument...
|
||||
- tonumber(nil,11) ...bad argument...
|
||||
- tonumber(<function>,11) ...bad argument...
|
||||
- tonumber(<table>,11) ...bad argument...
|
||||
- tonumber(nil,36) ...bad argument...
|
||||
- tonumber(<function>,36) ...bad argument...
|
||||
- tonumber(<table>,36) ...bad argument...
|
||||
--- checkallerrors
|
||||
- tonumber(1.25,1) ...bad argument...
|
||||
- tonumber('789',1) ...bad argument...
|
||||
- tonumber(1.25,37) ...bad argument...
|
||||
- tonumber('789',37) ...bad argument...
|
||||
- tonumber(1.25,<table>) ...bad argument...
|
||||
- tonumber('789',<table>) ...bad argument...
|
||||
- tonumber(1.25,<function>) ...bad argument...
|
||||
- tonumber('789',<function>) ...bad argument...
|
||||
- tonumber(1.25,true) ...bad argument...
|
||||
- tonumber('789',true) ...bad argument...
|
||||
====== tostring ======
|
||||
--- checkallpass
|
||||
- tostring('abc') 'abc'
|
||||
- tostring(1.25) '1.25'
|
||||
- tostring(true) 'true'
|
||||
--- checkallpass
|
||||
- tostring(<table>) string
|
||||
- tostring(<function>) string
|
||||
- tostring(<thread>) string
|
||||
--- checkallpass
|
||||
- tostring('abc','anchor') 'abc'
|
||||
- tostring(1.25,'anchor') '1.25'
|
||||
- tostring(true,'anchor') 'true'
|
||||
--- checkallpass
|
||||
- tostring(<table>,'anchor') string
|
||||
- tostring(<function>,'anchor') string
|
||||
- tostring(<thread>,'anchor') string
|
||||
--- checkallerrors
|
||||
- tostring() ...bad argument...
|
||||
====== type ======
|
||||
--- checkallpass
|
||||
- type('abc') 'string'
|
||||
- type(1.25) 'number'
|
||||
- type(true) 'boolean'
|
||||
- type(<table>) 'table'
|
||||
- type(<function>) 'function'
|
||||
- type(<thread>) 'thread'
|
||||
--- checkallpass
|
||||
- type(nil,'anchor') 'nil'
|
||||
- type('abc','anchor') 'string'
|
||||
- type(1.25,'anchor') 'number'
|
||||
- type(true,'anchor') 'boolean'
|
||||
- type(<table>,'anchor') 'table'
|
||||
- type(<function>,'anchor') 'function'
|
||||
- type(<thread>,'anchor') 'thread'
|
||||
--- checkallerrors
|
||||
- type() ...bad argument...
|
||||
====== xpcall ======
|
||||
--- checkallpass
|
||||
- xpcall('abc','abc') false,'error in error handling'
|
||||
- xpcall(1.25,'abc') false,'error in error handling'
|
||||
- xpcall(true,'abc') false,'error in error handling'
|
||||
- xpcall(<table>,'abc') false,'error in error handling'
|
||||
- xpcall(<function>,'abc') true
|
||||
- xpcall(<thread>,'abc') false,'error in error handling'
|
||||
- xpcall('abc',1.25) false,'error in error handling'
|
||||
- xpcall(1.25,1.25) false,'error in error handling'
|
||||
- xpcall(true,1.25) false,'error in error handling'
|
||||
- xpcall(<table>,1.25) false,'error in error handling'
|
||||
- xpcall(<function>,1.25) true
|
||||
- xpcall(<thread>,1.25) false,'error in error handling'
|
||||
- xpcall('abc',true) false,'error in error handling'
|
||||
- xpcall(1.25,true) false,'error in error handling'
|
||||
- xpcall(true,true) false,'error in error handling'
|
||||
- xpcall(<table>,true) false,'error in error handling'
|
||||
- xpcall(<function>,true) true
|
||||
- xpcall(<thread>,true) false,'error in error handling'
|
||||
- xpcall('abc',<table>) false,'error in error handling'
|
||||
- xpcall(1.25,<table>) false,'error in error handling'
|
||||
- xpcall(true,<table>) false,'error in error handling'
|
||||
- xpcall(<table>,<table>) false,'error in error handling'
|
||||
- xpcall(<function>,<table>) true
|
||||
- xpcall(<thread>,<table>) false,'error in error handling'
|
||||
- xpcall('abc',<thread>) false,'error in error handling'
|
||||
- xpcall(1.25,<thread>) false,'error in error handling'
|
||||
- xpcall(true,<thread>) false,'error in error handling'
|
||||
- xpcall(<table>,<thread>) false,'error in error handling'
|
||||
- xpcall(<function>,<thread>) true
|
||||
- xpcall(<thread>,<thread>) false,'error in error handling'
|
||||
--- checkallpass
|
||||
- xpcall('abc',<function>) false,'aaa'
|
||||
- xpcall(1.25,<function>) false,'aaa'
|
||||
- xpcall(true,<function>) false,'aaa'
|
||||
- xpcall(<table>,<function>) false,'aaa'
|
||||
- xpcall(<function>,<function>) true
|
||||
- xpcall(<thread>,<function>) false,'aaa'
|
||||
--- checkallerrors
|
||||
- xpcall(nil) ...bad argument...
|
||||
- xpcall('abc') ...bad argument...
|
||||
- xpcall(1.25) ...bad argument...
|
||||
- xpcall(true) ...bad argument...
|
||||
- xpcall(<table>) ...bad argument...
|
||||
- xpcall(<function>) ...bad argument...
|
||||
- xpcall(<thread>) ...bad argument...
|
||||
65
luaj-test/src/test/resources/errors/coroutinelibargs.out
Normal file
65
luaj-test/src/test/resources/errors/coroutinelibargs.out
Normal file
@@ -0,0 +1,65 @@
|
||||
====== coroutine.create ======
|
||||
--- checkallpass
|
||||
- coroutine.create(<function>) <thread>
|
||||
--- checkallerrors
|
||||
- coroutine.create(nil) ...bad argument...
|
||||
- coroutine.create('abc') ...bad argument...
|
||||
- coroutine.create(1.25) ...bad argument...
|
||||
- coroutine.create(true) ...bad argument...
|
||||
- coroutine.create(<table>) ...bad argument...
|
||||
- coroutine.create(<thread>) ...bad argument...
|
||||
====== coroutine.resume ======
|
||||
--- checkallpass
|
||||
- coroutine.resume(<thread>,nil) true
|
||||
- coroutine.resume(<thread>,'abc') true
|
||||
- coroutine.resume(<thread>,1.25) true
|
||||
- coroutine.resume(<thread>,true) true
|
||||
- coroutine.resume(<thread>,<table>) true
|
||||
- coroutine.resume(<thread>,<function>) true
|
||||
- coroutine.resume(<thread>,<thread>) true
|
||||
--- checkallerrors
|
||||
- coroutine.resume(nil) ...bad argument...
|
||||
- coroutine.resume('abc') ...bad argument...
|
||||
- coroutine.resume(1.25) ...bad argument...
|
||||
- coroutine.resume(true) ...bad argument...
|
||||
- coroutine.resume(<table>) ...bad argument...
|
||||
- coroutine.resume(<function>) ...bad argument...
|
||||
====== coroutine.running ======
|
||||
--- checkallpass
|
||||
- coroutine.running(nil) <thread>,true
|
||||
- coroutine.running('abc') <thread>,true
|
||||
- coroutine.running(1.25) <thread>,true
|
||||
- coroutine.running(true) <thread>,true
|
||||
- coroutine.running(<table>) <thread>,true
|
||||
- coroutine.running(<function>) <thread>,true
|
||||
- coroutine.running(<thread>) <thread>,true
|
||||
====== coroutine.status ======
|
||||
--- checkallpass
|
||||
- coroutine.status(<thread>) 'suspended'
|
||||
--- checkallerrors
|
||||
- coroutine.status(nil) ...bad argument...
|
||||
- coroutine.status('abc') ...bad argument...
|
||||
- coroutine.status(1.25) ...bad argument...
|
||||
- coroutine.status(true) ...bad argument...
|
||||
- coroutine.status(<table>) ...bad argument...
|
||||
- coroutine.status(<function>) ...bad argument...
|
||||
====== coroutine.wrap ======
|
||||
--- checkallpass
|
||||
- coroutine.wrap(<function>) <function>
|
||||
--- checkallerrors
|
||||
- coroutine.wrap(nil) ...bad argument...
|
||||
- coroutine.wrap('abc') ...bad argument...
|
||||
- coroutine.wrap(1.25) ...bad argument...
|
||||
- coroutine.wrap(true) ...bad argument...
|
||||
- coroutine.wrap(<table>) ...bad argument...
|
||||
- coroutine.wrap(<thread>) ...bad argument...
|
||||
====== coroutine.yield ======
|
||||
status suspended
|
||||
true
|
||||
status suspended
|
||||
yield abc 1.25
|
||||
true abc 1.25 true
|
||||
status suspended
|
||||
yield abc 1.25
|
||||
false error within coroutine thread
|
||||
status dead
|
||||
452
luaj-test/src/test/resources/errors/debuglibargs.out
Normal file
452
luaj-test/src/test/resources/errors/debuglibargs.out
Normal file
@@ -0,0 +1,452 @@
|
||||
====== debug.debug - no tests ======
|
||||
====== debug.gethook ======
|
||||
--- checkallpass
|
||||
- debug.gethook() nil,'',0
|
||||
====== debug.getinfo ======
|
||||
--- checkallpass
|
||||
- debug.getinfo(<function>) <table>
|
||||
- debug.getinfo(25)
|
||||
- debug.getinfo('25')
|
||||
--- checkallpass
|
||||
- debug.getinfo(<function>) <table>
|
||||
- debug.getinfo(25)
|
||||
- debug.getinfo('25')
|
||||
--- checkallpass
|
||||
- debug.getinfo(<function>,'') <table>
|
||||
- debug.getinfo(25,'')
|
||||
- debug.getinfo('25','')
|
||||
- debug.getinfo(<function>,'n') <table>
|
||||
- debug.getinfo(25,'n')
|
||||
- debug.getinfo('25','n')
|
||||
- debug.getinfo(<function>,'flnStu') <table>
|
||||
- debug.getinfo(25,'flnStu')
|
||||
- debug.getinfo('25','flnStu')
|
||||
--- checkallpass
|
||||
fail debug.getinfo('') 'bad argument #1 to 'debug.getinfo' (function or level expected)'
|
||||
fail debug.getinfo('n') 'bad argument #1 to 'debug.getinfo' (function or level expected)'
|
||||
fail debug.getinfo('flnStu') 'bad argument #1 to 'debug.getinfo' (function or level expected)'
|
||||
--- checkallerrors
|
||||
- debug.getinfo() ...function or level...
|
||||
--- checkallerrors
|
||||
- debug.getinfo(nil) ...function or level...
|
||||
- debug.getinfo('abc') ...function or level...
|
||||
- debug.getinfo(true) ...function or level...
|
||||
- debug.getinfo(<thread>) ...function or level...
|
||||
--- checkallerrors
|
||||
- debug.getinfo(<function>,true) ...string expected...
|
||||
- debug.getinfo(<function>,<table>) ...string expected...
|
||||
- debug.getinfo(<function>,<function>) ...string expected...
|
||||
- debug.getinfo(<function>,<thread>) ...string expected...
|
||||
--- checkallerrors
|
||||
- debug.getinfo(nil,<function>) ...string expected...
|
||||
- debug.getinfo('abc',<function>) ...string expected...
|
||||
- debug.getinfo(true,<function>) ...string expected...
|
||||
--- checkallerrors
|
||||
- debug.getinfo('abc',<function>,'abc') ...string expected...
|
||||
- debug.getinfo(1.25,<function>,'abc') ...string expected...
|
||||
- debug.getinfo(true,<function>,'abc') ...string expected...
|
||||
- debug.getinfo(<table>,<function>,'abc') ...string expected...
|
||||
- debug.getinfo(<function>,<function>,'abc') ...string expected...
|
||||
--- checkallerrors
|
||||
badmsg debug.getinfo('qzQZ') template='invalid option' actual='bad argument #1 to 'debug.getinfo' (function or level expected)'
|
||||
====== debug.getlocal ======
|
||||
f: x,y,a,b,p,q 1 2 nil nil p q
|
||||
--- checkallpass
|
||||
- debug.getlocal(<function>,1) 'x'
|
||||
- debug.getlocal(1,1) '(*temporary)'
|
||||
- debug.getlocal(<function>,'2') 'y'
|
||||
- debug.getlocal(1,'2')
|
||||
--- checkallpass
|
||||
- debug.getlocal(<thread>,<function>,1) 'x'
|
||||
--- checkallerrors
|
||||
- debug.getlocal() ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.getlocal(<function>,nil) ...number expected...
|
||||
- debug.getlocal(25,nil) ...number expected...
|
||||
- debug.getlocal('25',nil) ...number expected...
|
||||
- debug.getlocal(<function>,'abc') ...number expected...
|
||||
- debug.getlocal(25,'abc') ...number expected...
|
||||
- debug.getlocal('25','abc') ...number expected...
|
||||
- debug.getlocal(<function>,true) ...number expected...
|
||||
- debug.getlocal(25,true) ...number expected...
|
||||
- debug.getlocal('25',true) ...number expected...
|
||||
- debug.getlocal(<function>,<table>) ...number expected...
|
||||
- debug.getlocal(25,<table>) ...number expected...
|
||||
- debug.getlocal('25',<table>) ...number expected...
|
||||
- debug.getlocal(<function>,<function>) ...number expected...
|
||||
- debug.getlocal(25,<function>) ...number expected...
|
||||
- debug.getlocal('25',<function>) ...number expected...
|
||||
- debug.getlocal(<function>,<thread>) ...number expected...
|
||||
- debug.getlocal(25,<thread>) ...number expected...
|
||||
- debug.getlocal('25',<thread>) ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.getlocal(nil,1.25) ...number expected...
|
||||
- debug.getlocal('abc',1.25) ...number expected...
|
||||
- debug.getlocal(true,1.25) ...number expected...
|
||||
- debug.getlocal(<thread>,1.25) ...number expected...
|
||||
- debug.getlocal(nil,'789') ...number expected...
|
||||
- debug.getlocal('abc','789') ...number expected...
|
||||
- debug.getlocal(true,'789') ...number expected...
|
||||
- debug.getlocal(<thread>,'789') ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.getlocal(<thread>,<function>) ...got no value...
|
||||
- debug.getlocal(<thread>,25) ...got no value...
|
||||
- debug.getlocal(<thread>,'25') ...got no value...
|
||||
--- checkallerrors
|
||||
- debug.getlocal('abc',<function>,1) ...number expected...
|
||||
- debug.getlocal(1.25,<function>,1) ...number expected...
|
||||
- debug.getlocal(true,<function>,1) ...number expected...
|
||||
- debug.getlocal(<table>,<function>,1) ...number expected...
|
||||
- debug.getlocal(<function>,<function>,1) ...number expected...
|
||||
- debug.getlocal('abc',<function>,'2') ...number expected...
|
||||
- debug.getlocal(1.25,<function>,'2') ...number expected...
|
||||
- debug.getlocal(true,<function>,'2') ...number expected...
|
||||
- debug.getlocal(<table>,<function>,'2') ...number expected...
|
||||
- debug.getlocal(<function>,<function>,'2') ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.getlocal(<thread>,100,1) ...level out of range...
|
||||
====== debug.getmetatable ======
|
||||
--- checkallpass
|
||||
- debug.getmetatable(nil)
|
||||
- debug.getmetatable('abc') <table>
|
||||
- debug.getmetatable(1.25)
|
||||
- debug.getmetatable(true)
|
||||
- debug.getmetatable(<table>)
|
||||
- debug.getmetatable(<function>)
|
||||
- debug.getmetatable(<thread>)
|
||||
--- checkallerrors
|
||||
- debug.getmetatable() ...value expected...
|
||||
====== debug.getregistry ======
|
||||
--- checkallpass
|
||||
- debug.getregistry() <table>
|
||||
--- checkallpass
|
||||
- debug.getregistry(nil) <table>
|
||||
- debug.getregistry('abc') <table>
|
||||
- debug.getregistry(1.25) <table>
|
||||
- debug.getregistry(true) <table>
|
||||
- debug.getregistry(<table>) <table>
|
||||
- debug.getregistry(<function>) <table>
|
||||
- debug.getregistry(<thread>) <table>
|
||||
====== debug.getupvalue ======
|
||||
--- checkallpass
|
||||
- debug.getupvalue(<function>,1) '_ENV',<table>
|
||||
- debug.getupvalue(<function>,'2') 'p','p'
|
||||
--- checkallerrors
|
||||
- debug.getupvalue() ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.getupvalue(nil,1) ...function expected...
|
||||
- debug.getupvalue('abc',1) ...function expected...
|
||||
- debug.getupvalue(1.25,1) ...function expected...
|
||||
- debug.getupvalue(true,1) ...function expected...
|
||||
- debug.getupvalue(<table>,1) ...function expected...
|
||||
- debug.getupvalue(<thread>,1) ...function expected...
|
||||
- debug.getupvalue(nil,'2') ...function expected...
|
||||
- debug.getupvalue('abc','2') ...function expected...
|
||||
- debug.getupvalue(1.25,'2') ...function expected...
|
||||
- debug.getupvalue(true,'2') ...function expected...
|
||||
- debug.getupvalue(<table>,'2') ...function expected...
|
||||
- debug.getupvalue(<thread>,'2') ...function expected...
|
||||
--- checkallerrors
|
||||
- debug.getupvalue(<function>,nil) ...number expected...
|
||||
- debug.getupvalue(<function>,'abc') ...number expected...
|
||||
- debug.getupvalue(<function>,true) ...number expected...
|
||||
- debug.getupvalue(<function>,<table>) ...number expected...
|
||||
- debug.getupvalue(<function>,<function>) ...number expected...
|
||||
- debug.getupvalue(<function>,<thread>) ...number expected...
|
||||
--- checkallpass
|
||||
- debug.getuservalue()
|
||||
--- checkallpass
|
||||
- debug.getuservalue(nil)
|
||||
- debug.getuservalue('abc')
|
||||
- debug.getuservalue(1.25)
|
||||
- debug.getuservalue(true)
|
||||
- debug.getuservalue(<table>)
|
||||
- debug.getuservalue(<function>)
|
||||
- debug.getuservalue(<thread>)
|
||||
--- checkallpass
|
||||
- debug.sethook()
|
||||
--- checkallpass
|
||||
--- checkallpass
|
||||
- debug.sethook(<function>,'cr')
|
||||
- debug.sethook(<function>,'l')
|
||||
--- checkallpass
|
||||
- debug.sethook(nil,<function>,'cr')
|
||||
- debug.sethook(<thread>,<function>,'cr')
|
||||
- debug.sethook(nil,<function>,'l')
|
||||
- debug.sethook(<thread>,<function>,'l')
|
||||
--- checkallerrors
|
||||
- debug.sethook('abc') ...string expected...
|
||||
- debug.sethook(<function>) ...string expected...
|
||||
- debug.sethook(true) ...string expected...
|
||||
--- checkallerrors
|
||||
- debug.sethook('abc',nil,'cr') ...string expected...
|
||||
- debug.sethook(<function>,nil,'cr') ...string expected...
|
||||
- debug.sethook(true,nil,'cr') ...string expected...
|
||||
- debug.sethook('abc',<function>,'cr') ...string expected...
|
||||
- debug.sethook(<function>,<function>,'cr') ...string expected...
|
||||
- debug.sethook(true,<function>,'cr') ...string expected...
|
||||
- debug.sethook('abc',nil,'l') ...string expected...
|
||||
- debug.sethook(<function>,nil,'l') ...string expected...
|
||||
- debug.sethook(true,nil,'l') ...string expected...
|
||||
- debug.sethook('abc',<function>,'l') ...string expected...
|
||||
- debug.sethook(<function>,<function>,'l') ...string expected...
|
||||
- debug.sethook(true,<function>,'l') ...string expected...
|
||||
====== debug.setlocal ======
|
||||
f: x,y,a,b,p,q 1 2 nil nil p q
|
||||
--- checkallpass
|
||||
- debug.setlocal(1,1,nil) '(*temporary)'
|
||||
- debug.setlocal(1,1,'foo') '(*temporary)'
|
||||
f: x,y,a,b,p,q 1 2 1 2 p q
|
||||
--- checkallpass
|
||||
- debug.setlocal(<thread>,1,2,nil)
|
||||
- debug.setlocal(<thread>,1,2,'bar')
|
||||
f: x,y,a,b,p,q 1 2 1 2 p q
|
||||
--- checkallerrors
|
||||
- debug.setlocal() ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(1) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(1,1) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(<thread>,1,2) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(<table>,1) ...number expected...
|
||||
- debug.setlocal('abc',1) ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(1,'abc') ...value expected...
|
||||
- debug.setlocal(1,true) ...value expected...
|
||||
- debug.setlocal(1,<table>) ...value expected...
|
||||
- debug.setlocal(1,<function>) ...value expected...
|
||||
- debug.setlocal(1,<thread>) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(<table>,1,1,nil) ...number expected...
|
||||
- debug.setlocal('abc',1,1,nil) ...number expected...
|
||||
- debug.setlocal(<table>,1,1,'foo') ...number expected...
|
||||
- debug.setlocal('abc',1,1,'foo') ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.setlocal(10,1,'foo') ...level out of range...
|
||||
====== debug.setmetatable ======
|
||||
--- checkallpass
|
||||
- debug.setmetatable(nil,<table>)
|
||||
- debug.setmetatable('abc',<table>) 'abc'
|
||||
- debug.setmetatable(1.25,<table>) 1.25
|
||||
- debug.setmetatable(true,<table>) true
|
||||
- debug.setmetatable(<table>,<table>) <table>
|
||||
- debug.setmetatable(<function>,<table>) <function>
|
||||
- debug.setmetatable(<thread>,<table>) <thread>
|
||||
- debug.setmetatable(nil,nil)
|
||||
- debug.setmetatable('abc',nil) 'abc'
|
||||
- debug.setmetatable(1.25,nil) 1.25
|
||||
- debug.setmetatable(true,nil) true
|
||||
- debug.setmetatable(<table>,nil) <table>
|
||||
- debug.setmetatable(<function>,nil) <function>
|
||||
- debug.setmetatable(<thread>,nil) <thread>
|
||||
--- checkallerrors
|
||||
- debug.setmetatable() ...nil or table...
|
||||
--- checkallerrors
|
||||
- debug.setmetatable(nil) ...nil or table...
|
||||
- debug.setmetatable('abc') ...nil or table...
|
||||
- debug.setmetatable(1.25) ...nil or table...
|
||||
- debug.setmetatable(true) ...nil or table...
|
||||
- debug.setmetatable(<table>) ...nil or table...
|
||||
- debug.setmetatable(<function>) ...nil or table...
|
||||
- debug.setmetatable(<thread>) ...nil or table...
|
||||
====== debug.setupvalue ======
|
||||
--- checkallpass
|
||||
- debug.setupvalue(<function>,2,nil) 'p'
|
||||
- debug.setupvalue(<function>,'3',nil) 'q'
|
||||
- debug.setupvalue(<function>,2,true) 'p'
|
||||
- debug.setupvalue(<function>,'3',true) 'q'
|
||||
- debug.setupvalue(<function>,2,'abc') 'p'
|
||||
- debug.setupvalue(<function>,'3','abc') 'q'
|
||||
p,q abc abc
|
||||
--- checkallerrors
|
||||
- debug.setupvalue() ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setupvalue(<function>) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setupvalue(<function>,2) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setupvalue(nil,2) ...value expected...
|
||||
- debug.setupvalue('abc',2) ...value expected...
|
||||
- debug.setupvalue(1.25,2) ...value expected...
|
||||
- debug.setupvalue(true,2) ...value expected...
|
||||
- debug.setupvalue(<table>,2) ...value expected...
|
||||
- debug.setupvalue(<thread>,2) ...value expected...
|
||||
--- checkallerrors
|
||||
- debug.setupvalue(<function>,nil) ...value expected...
|
||||
- debug.setupvalue(<function>,'abc') ...value expected...
|
||||
- debug.setupvalue(<function>,true) ...value expected...
|
||||
- debug.setupvalue(<function>,<table>) ...value expected...
|
||||
- debug.setupvalue(<function>,<function>) ...value expected...
|
||||
- debug.setupvalue(<function>,<thread>) ...value expected...
|
||||
====== debug.setuservalue ======
|
||||
--- checkallerrors
|
||||
- debug.setuservalue() ...userdata expected...
|
||||
--- checkallerrors
|
||||
- debug.setuservalue(nil) ...userdata expected...
|
||||
- debug.setuservalue('abc') ...userdata expected...
|
||||
- debug.setuservalue(1.25) ...userdata expected...
|
||||
- debug.setuservalue(true) ...userdata expected...
|
||||
- debug.setuservalue(<table>) ...userdata expected...
|
||||
- debug.setuservalue(<function>) ...userdata expected...
|
||||
- debug.setuservalue(<thread>) ...userdata expected...
|
||||
--- checkallerrors
|
||||
- debug.setuservalue(nil,'abc') ...userdata expected...
|
||||
- debug.setuservalue('abc','abc') ...userdata expected...
|
||||
- debug.setuservalue(1.25,'abc') ...userdata expected...
|
||||
- debug.setuservalue(true,'abc') ...userdata expected...
|
||||
- debug.setuservalue(<table>,'abc') ...userdata expected...
|
||||
- debug.setuservalue(<function>,'abc') ...userdata expected...
|
||||
- debug.setuservalue(<thread>,'abc') ...userdata expected...
|
||||
- debug.setuservalue(nil,1.25) ...userdata expected...
|
||||
- debug.setuservalue('abc',1.25) ...userdata expected...
|
||||
- debug.setuservalue(1.25,1.25) ...userdata expected...
|
||||
- debug.setuservalue(true,1.25) ...userdata expected...
|
||||
- debug.setuservalue(<table>,1.25) ...userdata expected...
|
||||
- debug.setuservalue(<function>,1.25) ...userdata expected...
|
||||
- debug.setuservalue(<thread>,1.25) ...userdata expected...
|
||||
====== debug.traceback ======
|
||||
--- checkallpass
|
||||
- debug.traceback() 'stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:127: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback('abc') 'abc
|
||||
stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:128: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback('abc',1.25) 'abc
|
||||
stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:129: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback(<thread>) 'stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:130: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback(<thread>,'abc') 'abc
|
||||
stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:131: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback(<thread>,'abc',1.25) 'abc
|
||||
stack traceback:
|
||||
[C]: in function 'pcall'
|
||||
args.lua:143: in function 'invoke'
|
||||
args.lua:167: in function 'checkallpass'
|
||||
debuglibargs.lua:132: in main chunk
|
||||
[C]: in ?'
|
||||
--- checkallpass
|
||||
- debug.traceback(<function>) <function>
|
||||
- debug.traceback(true) true
|
||||
- debug.traceback(<table>) <table>
|
||||
--- checkallpass
|
||||
- debug.traceback(<function>,nil) <function>
|
||||
- debug.traceback(true,nil) true
|
||||
- debug.traceback(<table>,nil) <table>
|
||||
- debug.traceback(<function>,'abc') <function>
|
||||
- debug.traceback(true,'abc') true
|
||||
- debug.traceback(<table>,'abc') <table>
|
||||
- debug.traceback(<function>,true) <function>
|
||||
- debug.traceback(true,true) true
|
||||
- debug.traceback(<table>,true) <table>
|
||||
- debug.traceback(<function>,<table>) <function>
|
||||
- debug.traceback(true,<table>) true
|
||||
- debug.traceback(<table>,<table>) <table>
|
||||
- debug.traceback(<function>,<function>) <function>
|
||||
- debug.traceback(true,<function>) true
|
||||
- debug.traceback(<table>,<function>) <table>
|
||||
- debug.traceback(<function>,<thread>) <function>
|
||||
- debug.traceback(true,<thread>) true
|
||||
- debug.traceback(<table>,<thread>) <table>
|
||||
====== debug.upvalueid ======
|
||||
--- checkallpass
|
||||
- debug.upvalueid(<function>,1) <userdata>
|
||||
- debug.upvalueid(<function>,'2') <userdata>
|
||||
--- checkallerrors
|
||||
- debug.upvalueid() ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.upvalueid(nil,1) ...function expected...
|
||||
- debug.upvalueid('abc',1) ...function expected...
|
||||
- debug.upvalueid(1.25,1) ...function expected...
|
||||
- debug.upvalueid(true,1) ...function expected...
|
||||
- debug.upvalueid(<table>,1) ...function expected...
|
||||
- debug.upvalueid(<thread>,1) ...function expected...
|
||||
- debug.upvalueid(nil,'2') ...function expected...
|
||||
- debug.upvalueid('abc','2') ...function expected...
|
||||
- debug.upvalueid(1.25,'2') ...function expected...
|
||||
- debug.upvalueid(true,'2') ...function expected...
|
||||
- debug.upvalueid(<table>,'2') ...function expected...
|
||||
- debug.upvalueid(<thread>,'2') ...function expected...
|
||||
--- checkallerrors
|
||||
- debug.upvalueid(<function>,nil) ...number expected...
|
||||
- debug.upvalueid(<function>,'abc') ...number expected...
|
||||
- debug.upvalueid(<function>,true) ...number expected...
|
||||
- debug.upvalueid(<function>,<table>) ...number expected...
|
||||
- debug.upvalueid(<function>,<function>) ...number expected...
|
||||
- debug.upvalueid(<function>,<thread>) ...number expected...
|
||||
====== debug.upvaluejoin ======
|
||||
--- checkallpass
|
||||
- debug.upvaluejoin(<function>,1,<function>,1)
|
||||
- debug.upvaluejoin(<function>,'2',<function>,1)
|
||||
- debug.upvaluejoin(<function>,1,<function>,'2')
|
||||
- debug.upvaluejoin(<function>,'2',<function>,'2')
|
||||
--- checkallerrors
|
||||
- debug.upvaluejoin() ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.upvaluejoin(nil,1) ...function expected...
|
||||
- debug.upvaluejoin('abc',1) ...function expected...
|
||||
- debug.upvaluejoin(1.25,1) ...function expected...
|
||||
- debug.upvaluejoin(true,1) ...function expected...
|
||||
- debug.upvaluejoin(<table>,1) ...function expected...
|
||||
- debug.upvaluejoin(<thread>,1) ...function expected...
|
||||
- debug.upvaluejoin(nil,'2') ...function expected...
|
||||
- debug.upvaluejoin('abc','2') ...function expected...
|
||||
- debug.upvaluejoin(1.25,'2') ...function expected...
|
||||
- debug.upvaluejoin(true,'2') ...function expected...
|
||||
- debug.upvaluejoin(<table>,'2') ...function expected...
|
||||
- debug.upvaluejoin(<thread>,'2') ...function expected...
|
||||
--- checkallerrors
|
||||
- debug.upvaluejoin(<function>,nil) ...number expected...
|
||||
- debug.upvaluejoin(<function>,'abc') ...number expected...
|
||||
- debug.upvaluejoin(<function>,true) ...number expected...
|
||||
- debug.upvaluejoin(<function>,<table>) ...number expected...
|
||||
- debug.upvaluejoin(<function>,<function>) ...number expected...
|
||||
- debug.upvaluejoin(<function>,<thread>) ...number expected...
|
||||
--- checkallerrors
|
||||
- debug.upvaluejoin(<function>,1,nil,1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,'abc',1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,1.25,1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,true,1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,<table>,1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,<thread>,1) ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,nil,'2') ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,'abc','2') ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,1.25,'2') ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,true,'2') ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,<table>,'2') ...function expected...
|
||||
- debug.upvaluejoin(<function>,1,<thread>,'2') ...function expected...
|
||||
--- checkallerrors
|
||||
- debug.upvaluejoin(<function>,1,<function>,nil) ...number expected...
|
||||
- debug.upvaluejoin(<function>,1,<function>,'abc') ...number expected...
|
||||
- debug.upvaluejoin(<function>,1,<function>,true) ...number expected...
|
||||
- debug.upvaluejoin(<function>,1,<function>,<table>) ...number expected...
|
||||
- debug.upvaluejoin(<function>,1,<function>,<function>) ...number expected...
|
||||
- debug.upvaluejoin(<function>,1,<function>,<thread>) ...number expected...
|
||||
202
luaj-test/src/test/resources/errors/iolibargs.out
Normal file
202
luaj-test/src/test/resources/errors/iolibargs.out
Normal file
@@ -0,0 +1,202 @@
|
||||
====== io.close ======
|
||||
--- checkallpass
|
||||
- io.close(<userdata>) true
|
||||
--- checkallerrors
|
||||
- io.close('abc') ...bad argument...
|
||||
- io.close(1.25) ...bad argument...
|
||||
- io.close(true) ...bad argument...
|
||||
- io.close(<table>) ...bad argument...
|
||||
- io.close(<function>) ...bad argument...
|
||||
- io.close(<thread>) ...bad argument...
|
||||
====== io.input ======
|
||||
--- checkallpass
|
||||
- io.input(nil) <userdata>
|
||||
- io.input(<userdata>) <userdata>
|
||||
- io.input('abc.txt') <userdata>
|
||||
--- checkallerrors
|
||||
- io.input(true) ...bad argument...
|
||||
- io.input(<table>) ...bad argument...
|
||||
- io.input(<function>) ...bad argument...
|
||||
- io.input(<thread>) ...bad argument...
|
||||
====== io.lines ======
|
||||
--- checkallpass
|
||||
- io.lines('abc.txt') <function>
|
||||
--- checkallerrors
|
||||
- io.lines(<userdata>) ...bad argument...
|
||||
--- checkallerrors
|
||||
needcheck io.lines(nil) function: 0x100112cf0
|
||||
- io.lines(true) ...bad argument...
|
||||
- io.lines(<table>) ...bad argument...
|
||||
- io.lines(<function>) ...bad argument...
|
||||
- io.lines(<thread>) ...bad argument...
|
||||
====== io.open ======
|
||||
--- checkallpass
|
||||
- io.open('abc.txt',nil) <userdata>
|
||||
- io.open('abc.txt','r') <userdata>
|
||||
- io.open('abc.txt','w') <userdata>
|
||||
- io.open('abc.txt','a') <userdata>
|
||||
- io.open('abc.txt','r+') <userdata>
|
||||
- io.open('abc.txt','w+') <userdata>
|
||||
- io.open('abc.txt','a+') <userdata>
|
||||
--- checkallerrors
|
||||
- io.open(nil) ...bad argument...
|
||||
- io.open(true) ...bad argument...
|
||||
- io.open(<table>) ...bad argument...
|
||||
- io.open(<function>) ...bad argument...
|
||||
- io.open(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- io.open('abc.txt',<table>) ...bad argument...
|
||||
====== io.output ======
|
||||
--- checkallpass
|
||||
- io.output(nil) <userdata>
|
||||
- io.output(<userdata>) <userdata>
|
||||
- io.output('abc.txt') <userdata>
|
||||
--- checkallerrors
|
||||
- io.output(true) ...bad argument...
|
||||
- io.output(<table>) ...bad argument...
|
||||
- io.output(<function>) ...bad argument...
|
||||
- io.output(<thread>) ...bad argument...
|
||||
====== io.popen ======
|
||||
--- checkallerrors
|
||||
- io.popen(nil) ...bad argument...
|
||||
- io.popen(true) ...bad argument...
|
||||
- io.popen(<table>) ...bad argument...
|
||||
- io.popen(<function>) ...bad argument...
|
||||
- io.popen(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- io.popen('hostname',<table>) ...bad argument...
|
||||
====== io.read ======
|
||||
--- checkallpass
|
||||
- io.read()
|
||||
--- checkallpass
|
||||
- io.read(2)
|
||||
- io.read('*n')
|
||||
- io.read('*a') ''
|
||||
- io.read('*l')
|
||||
--- checkallpass
|
||||
- io.read(2,2)
|
||||
- io.read('*n',2)
|
||||
- io.read('*a',2) ''
|
||||
- io.read('*l',2)
|
||||
- io.read(2,'*a')
|
||||
- io.read('*n','*a')
|
||||
- io.read('*a','*a') '',''
|
||||
- io.read('*l','*a')
|
||||
- io.read(2,'*l')
|
||||
- io.read('*n','*l')
|
||||
- io.read('*a','*l') ''
|
||||
- io.read('*l','*l')
|
||||
--- checkallerrors
|
||||
- io.read(true) ...bad argument...
|
||||
- io.read(<function>) ...bad argument...
|
||||
- io.read(<table>) ...bad argument...
|
||||
- io.read('3') ...bad argument...
|
||||
====== io.write ======
|
||||
--- checkallpass
|
||||
- io.write() <userdata>
|
||||
--- checkallpass
|
||||
- io.write('abc') <userdata>
|
||||
- io.write(1.25) <userdata>
|
||||
--- checkallpass
|
||||
- io.write('abc','abc') <userdata>
|
||||
- io.write(1.25,'abc') <userdata>
|
||||
- io.write('abc',1.25) <userdata>
|
||||
- io.write(1.25,1.25) <userdata>
|
||||
--- checkallerrors
|
||||
- io.write(true) ...bad argument...
|
||||
- io.write(<table>) ...bad argument...
|
||||
- io.write(<function>) ...bad argument...
|
||||
- io.write(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- io.write('abc',true) ...bad argument...
|
||||
- io.write(1.25,true) ...bad argument...
|
||||
- io.write('abc',<table>) ...bad argument...
|
||||
- io.write(1.25,<table>) ...bad argument...
|
||||
- io.write('abc',<function>) ...bad argument...
|
||||
- io.write(1.25,<function>) ...bad argument...
|
||||
- io.write('abc',<thread>) ...bad argument...
|
||||
- io.write(1.25,<thread>) ...bad argument...
|
||||
====== file:write ======
|
||||
--- checkallpass
|
||||
- file.write(<userdata>,'abc') <userdata>
|
||||
- file.write(<userdata>,1.25) <userdata>
|
||||
--- checkallpass
|
||||
- file.write(<userdata>,'abc','abc') <userdata>
|
||||
- file.write(<userdata>,1.25,'abc') <userdata>
|
||||
- file.write(<userdata>,'abc',1.25) <userdata>
|
||||
- file.write(<userdata>,1.25,1.25) <userdata>
|
||||
--- checkallerrors
|
||||
- file.write() ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.write(<userdata>,true) ...bad argument...
|
||||
- file.write(<userdata>,<table>) ...bad argument...
|
||||
- file.write(<userdata>,<function>) ...bad argument...
|
||||
- file.write(<userdata>,<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.write(<userdata>,'abc',true) ...bad argument...
|
||||
- file.write(<userdata>,1.25,true) ...bad argument...
|
||||
- file.write(<userdata>,'abc',<table>) ...bad argument...
|
||||
- file.write(<userdata>,1.25,<table>) ...bad argument...
|
||||
- file.write(<userdata>,'abc',<function>) ...bad argument...
|
||||
- file.write(<userdata>,1.25,<function>) ...bad argument...
|
||||
- file.write(<userdata>,'abc',<thread>) ...bad argument...
|
||||
- file.write(<userdata>,1.25,<thread>) ...bad argument...
|
||||
====== file:seek ======
|
||||
--- checkallpass
|
||||
- file.seek(<userdata>) 0
|
||||
--- checkallpass
|
||||
- file.seek(<userdata>,'set') 0
|
||||
- file.seek(<userdata>,'cur') 0
|
||||
- file.seek(<userdata>,'end') 63
|
||||
--- checkallpass
|
||||
- file.seek(<userdata>,'set',2) 2
|
||||
- file.seek(<userdata>,'cur',2) 4
|
||||
- file.seek(<userdata>,'end',2) 65
|
||||
- file.seek(<userdata>,'set','3') 3
|
||||
- file.seek(<userdata>,'cur','3') 6
|
||||
- file.seek(<userdata>,'end','3') 66
|
||||
--- checkallerrors
|
||||
- file.seek() ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.seek(<userdata>,true) ...bad argument...
|
||||
- file.seek(<userdata>,<table>) ...bad argument...
|
||||
- file.seek(<userdata>,<function>) ...bad argument...
|
||||
- file.seek(<userdata>,<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.seek(<userdata>,'set','abc') ...bad argument...
|
||||
- file.seek(<userdata>,'cur','abc') ...bad argument...
|
||||
- file.seek(<userdata>,'end','abc') ...bad argument...
|
||||
- file.seek(<userdata>,'set',true) ...bad argument...
|
||||
- file.seek(<userdata>,'cur',true) ...bad argument...
|
||||
- file.seek(<userdata>,'end',true) ...bad argument...
|
||||
- file.seek(<userdata>,'set',<table>) ...bad argument...
|
||||
- file.seek(<userdata>,'cur',<table>) ...bad argument...
|
||||
- file.seek(<userdata>,'end',<table>) ...bad argument...
|
||||
- file.seek(<userdata>,'set',<function>) ...bad argument...
|
||||
- file.seek(<userdata>,'cur',<function>) ...bad argument...
|
||||
- file.seek(<userdata>,'end',<function>) ...bad argument...
|
||||
- file.seek(<userdata>,'set',<thread>) ...bad argument...
|
||||
- file.seek(<userdata>,'cur',<thread>) ...bad argument...
|
||||
- file.seek(<userdata>,'end',<thread>) ...bad argument...
|
||||
====== file:setvbuf ======
|
||||
--- checkallpass
|
||||
- file.setvbuf(<userdata>,'no') true
|
||||
- file.setvbuf(<userdata>,'full') true
|
||||
- file.setvbuf(<userdata>,'line') true
|
||||
--- checkallpass
|
||||
- file.setvbuf(<userdata>,'full',1024) true
|
||||
- file.setvbuf(<userdata>,'full','512') true
|
||||
--- checkallerrors
|
||||
- file.setvbuf() ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.setvbuf(<userdata>,nil) ...bad argument...
|
||||
- file.setvbuf(<userdata>,true) ...bad argument...
|
||||
- file.setvbuf(<userdata>,<table>) ...bad argument...
|
||||
- file.setvbuf(<userdata>,<function>) ...bad argument...
|
||||
- file.setvbuf(<userdata>,<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- file.setvbuf(<userdata>,'full','abc') ...bad argument...
|
||||
- file.setvbuf(<userdata>,'full',true) ...bad argument...
|
||||
- file.setvbuf(<userdata>,'full',<table>) ...bad argument...
|
||||
- file.setvbuf(<userdata>,'full',<function>) ...bad argument...
|
||||
- file.setvbuf(<userdata>,'full',<thread>) ...bad argument...
|
||||
750
luaj-test/src/test/resources/errors/mathlibargs.out
Normal file
750
luaj-test/src/test/resources/errors/mathlibargs.out
Normal file
@@ -0,0 +1,750 @@
|
||||
====== math.abs ======
|
||||
--- checkallpass
|
||||
- math.abs(1) 1
|
||||
- math.abs(0.75) 0.75
|
||||
- math.abs('-1') 1
|
||||
- math.abs('-0.25') 0.25
|
||||
--- checkallerrors
|
||||
- math.abs(nil) ...bad argument...
|
||||
- math.abs('abc') ...bad argument...
|
||||
- math.abs(true) ...bad argument...
|
||||
- math.abs(<function>) ...bad argument...
|
||||
- math.abs(<table>) ...bad argument...
|
||||
- math.abs(<thread>) ...bad argument...
|
||||
====== math.acos ======
|
||||
--- checkallpass
|
||||
- math.acos(1) 0
|
||||
- math.acos(0.75) 0.722...
|
||||
- math.acos('-1') 3.141...
|
||||
- math.acos('-0.25') 1.823...
|
||||
--- checkallerrors
|
||||
- math.acos(nil) ...bad argument...
|
||||
- math.acos('abc') ...bad argument...
|
||||
- math.acos(true) ...bad argument...
|
||||
- math.acos(<function>) ...bad argument...
|
||||
- math.acos(<table>) ...bad argument...
|
||||
- math.acos(<thread>) ...bad argument...
|
||||
====== math.asin ======
|
||||
--- checkallpass
|
||||
- math.asin(1) 1.570...
|
||||
- math.asin(0.75) 0.848...
|
||||
- math.asin('-1') -1.57...
|
||||
- math.asin('-0.25') -0.25...
|
||||
--- checkallerrors
|
||||
- math.asin(nil) ...bad argument...
|
||||
- math.asin('abc') ...bad argument...
|
||||
- math.asin(true) ...bad argument...
|
||||
- math.asin(<function>) ...bad argument...
|
||||
- math.asin(<table>) ...bad argument...
|
||||
- math.asin(<thread>) ...bad argument...
|
||||
====== math.atan ======
|
||||
--- checkallpass
|
||||
- math.atan(1) 0.785...
|
||||
- math.atan(0.75) 0.643...
|
||||
- math.atan('-1') -0.78...
|
||||
- math.atan('-0.25') -0.24...
|
||||
--- checkallerrors
|
||||
- math.atan(nil) ...bad argument...
|
||||
- math.atan('abc') ...bad argument...
|
||||
- math.atan(true) ...bad argument...
|
||||
- math.atan(<function>) ...bad argument...
|
||||
- math.atan(<table>) ...bad argument...
|
||||
- math.atan(<thread>) ...bad argument...
|
||||
====== math.cos ======
|
||||
--- checkallpass
|
||||
- math.cos(1) 0.540...
|
||||
- math.cos(0.75) 0.731...
|
||||
- math.cos('-1') 0.540...
|
||||
- math.cos('-0.25') 0.968...
|
||||
--- checkallerrors
|
||||
- math.cos(nil) ...bad argument...
|
||||
- math.cos('abc') ...bad argument...
|
||||
- math.cos(true) ...bad argument...
|
||||
- math.cos(<function>) ...bad argument...
|
||||
- math.cos(<table>) ...bad argument...
|
||||
- math.cos(<thread>) ...bad argument...
|
||||
====== math.cosh ======
|
||||
--- checkallpass
|
||||
- math.cosh(1) 1.543...
|
||||
- math.cosh(0.75) 1.294...
|
||||
- math.cosh('-1') 1.543...
|
||||
- math.cosh('-0.25') 1.031...
|
||||
--- checkallerrors
|
||||
- math.cosh(nil) ...bad argument...
|
||||
- math.cosh('abc') ...bad argument...
|
||||
- math.cosh(true) ...bad argument...
|
||||
- math.cosh(<function>) ...bad argument...
|
||||
- math.cosh(<table>) ...bad argument...
|
||||
- math.cosh(<thread>) ...bad argument...
|
||||
====== math.deg ======
|
||||
--- checkallpass
|
||||
- math.deg(1) 57.29...
|
||||
- math.deg(0.75) 42.97...
|
||||
- math.deg('-1') -57.2...
|
||||
- math.deg('-0.25') -14.3...
|
||||
--- checkallerrors
|
||||
- math.deg(nil) ...bad argument...
|
||||
- math.deg('abc') ...bad argument...
|
||||
- math.deg(true) ...bad argument...
|
||||
- math.deg(<function>) ...bad argument...
|
||||
- math.deg(<table>) ...bad argument...
|
||||
- math.deg(<thread>) ...bad argument...
|
||||
====== math.exp ======
|
||||
--- checkallpass
|
||||
- math.exp(1) 2.718...
|
||||
- math.exp(0.75) 2.117...
|
||||
- math.exp('-1') 0.367...
|
||||
- math.exp('-0.25') 0.778...
|
||||
--- checkallerrors
|
||||
- math.exp(nil) ...bad argument...
|
||||
- math.exp('abc') ...bad argument...
|
||||
- math.exp(true) ...bad argument...
|
||||
- math.exp(<function>) ...bad argument...
|
||||
- math.exp(<table>) ...bad argument...
|
||||
- math.exp(<thread>) ...bad argument...
|
||||
====== math.floor ======
|
||||
--- checkallpass
|
||||
- math.floor(1) 1
|
||||
- math.floor(0.75) 0
|
||||
- math.floor('-1') -1
|
||||
- math.floor('-0.25') -1
|
||||
--- checkallerrors
|
||||
- math.floor(nil) ...bad argument...
|
||||
- math.floor('abc') ...bad argument...
|
||||
- math.floor(true) ...bad argument...
|
||||
- math.floor(<function>) ...bad argument...
|
||||
- math.floor(<table>) ...bad argument...
|
||||
- math.floor(<thread>) ...bad argument...
|
||||
====== math.rad ======
|
||||
--- checkallpass
|
||||
- math.rad(1) 0.017...
|
||||
- math.rad(0.75) 0.013...
|
||||
- math.rad('-1') -0.01...
|
||||
- math.rad('-0.25') -0.00...
|
||||
--- checkallerrors
|
||||
- math.rad(nil) ...bad argument...
|
||||
- math.rad('abc') ...bad argument...
|
||||
- math.rad(true) ...bad argument...
|
||||
- math.rad(<function>) ...bad argument...
|
||||
- math.rad(<table>) ...bad argument...
|
||||
- math.rad(<thread>) ...bad argument...
|
||||
====== math.randomseed ======
|
||||
--- checkallpass
|
||||
- math.randomseed(1)
|
||||
- math.randomseed(0.75)
|
||||
- math.randomseed('-1')
|
||||
- math.randomseed('-0.25')
|
||||
--- checkallerrors
|
||||
- math.randomseed(nil) ...bad argument...
|
||||
- math.randomseed('abc') ...bad argument...
|
||||
- math.randomseed(true) ...bad argument...
|
||||
- math.randomseed(<function>) ...bad argument...
|
||||
- math.randomseed(<table>) ...bad argument...
|
||||
- math.randomseed(<thread>) ...bad argument...
|
||||
====== math.sin ======
|
||||
--- checkallpass
|
||||
- math.sin(1) 0.841...
|
||||
- math.sin(0.75) 0.681...
|
||||
- math.sin('-1') -0.84...
|
||||
- math.sin('-0.25') -0.24...
|
||||
--- checkallerrors
|
||||
- math.sin(nil) ...bad argument...
|
||||
- math.sin('abc') ...bad argument...
|
||||
- math.sin(true) ...bad argument...
|
||||
- math.sin(<function>) ...bad argument...
|
||||
- math.sin(<table>) ...bad argument...
|
||||
- math.sin(<thread>) ...bad argument...
|
||||
====== math.sinh ======
|
||||
--- checkallpass
|
||||
- math.sinh(1) 1.175...
|
||||
- math.sinh(0.75) 0.822...
|
||||
- math.sinh('-1') -1.17...
|
||||
- math.sinh('-0.25') -0.25...
|
||||
--- checkallerrors
|
||||
- math.sinh(nil) ...bad argument...
|
||||
- math.sinh('abc') ...bad argument...
|
||||
- math.sinh(true) ...bad argument...
|
||||
- math.sinh(<function>) ...bad argument...
|
||||
- math.sinh(<table>) ...bad argument...
|
||||
- math.sinh(<thread>) ...bad argument...
|
||||
====== math.tan ======
|
||||
--- checkallpass
|
||||
- math.tan(1) 1.557...
|
||||
- math.tan(0.75) 0.931...
|
||||
- math.tan('-1') -1.55...
|
||||
- math.tan('-0.25') -0.25...
|
||||
--- checkallerrors
|
||||
- math.tan(nil) ...bad argument...
|
||||
- math.tan('abc') ...bad argument...
|
||||
- math.tan(true) ...bad argument...
|
||||
- math.tan(<function>) ...bad argument...
|
||||
- math.tan(<table>) ...bad argument...
|
||||
- math.tan(<thread>) ...bad argument...
|
||||
====== math.tanh ======
|
||||
--- checkallpass
|
||||
- math.tanh(1) 0.761...
|
||||
- math.tanh(0.75) 0.635...
|
||||
- math.tanh('-1') -0.76...
|
||||
- math.tanh('-0.25') -0.24...
|
||||
--- checkallerrors
|
||||
- math.tanh(nil) ...bad argument...
|
||||
- math.tanh('abc') ...bad argument...
|
||||
- math.tanh(true) ...bad argument...
|
||||
- math.tanh(<function>) ...bad argument...
|
||||
- math.tanh(<table>) ...bad argument...
|
||||
- math.tanh(<thread>) ...bad argument...
|
||||
====== math.frexp ======
|
||||
--- checkallpass
|
||||
- math.frexp(1) 0.5,1
|
||||
- math.frexp(0.75) 0.75,0
|
||||
- math.frexp('-1') -0.5,1
|
||||
- math.frexp('-0.25') -0.5,-1
|
||||
--- checkallerrors
|
||||
- math.frexp(nil) ...bad argument...
|
||||
- math.frexp('abc') ...bad argument...
|
||||
- math.frexp(true) ...bad argument...
|
||||
- math.frexp(<function>) ...bad argument...
|
||||
- math.frexp(<table>) ...bad argument...
|
||||
- math.frexp(<thread>) ...bad argument...
|
||||
====== math.log ======
|
||||
--- checkallpass
|
||||
- math.log(1) 0
|
||||
- math.log(0.75) -0.28...
|
||||
- math.log('2') 0.693...
|
||||
- math.log('2.5') 0.916...
|
||||
--- checkallerrors
|
||||
- math.log(nil) ...bad argument...
|
||||
- math.log('abc') ...bad argument...
|
||||
- math.log(true) ...bad argument...
|
||||
- math.log(<function>) ...bad argument...
|
||||
- math.log(<table>) ...bad argument...
|
||||
- math.log(<thread>) ...bad argument...
|
||||
====== math.sqrt ======
|
||||
--- checkallpass
|
||||
- math.sqrt(1) 1
|
||||
- math.sqrt(0.75) 0.866...
|
||||
- math.sqrt('2') 1.414...
|
||||
- math.sqrt('2.5') 1.581...
|
||||
--- checkallerrors
|
||||
- math.sqrt(nil) ...bad argument...
|
||||
- math.sqrt('abc') ...bad argument...
|
||||
- math.sqrt(true) ...bad argument...
|
||||
- math.sqrt(<function>) ...bad argument...
|
||||
- math.sqrt(<table>) ...bad argument...
|
||||
- math.sqrt(<thread>) ...bad argument...
|
||||
====== math.ceil ======
|
||||
--- checkallpass
|
||||
- math.ceil(1) 1
|
||||
- math.ceil(0.75) 1
|
||||
- math.ceil('2') 2
|
||||
- math.ceil('2.5') 3
|
||||
--- checkallerrors
|
||||
- math.ceil(nil) ...bad argument...
|
||||
- math.ceil('abc') ...bad argument...
|
||||
- math.ceil(true) ...bad argument...
|
||||
- math.ceil(<function>) ...bad argument...
|
||||
- math.ceil(<table>) ...bad argument...
|
||||
- math.ceil(<thread>) ...bad argument...
|
||||
====== math.atan2 ======
|
||||
--- checkallpass
|
||||
- math.atan2(1,1) 0.785...
|
||||
- math.atan2(0.75,1) 0.643...
|
||||
- math.atan2('-1',1) -0.78...
|
||||
- math.atan2('-0.25',1) -0.24...
|
||||
- math.atan2(1,0.75) 0.927...
|
||||
- math.atan2(0.75,0.75) 0.785...
|
||||
- math.atan2('-1',0.75) -0.92...
|
||||
- math.atan2('-0.25',0.75) -0.32...
|
||||
- math.atan2(1,'-1') 2.356...
|
||||
- math.atan2(0.75,'-1') 2.498...
|
||||
- math.atan2('-1','-1') -2.35...
|
||||
- math.atan2('-0.25','-1') -2.89...
|
||||
- math.atan2(1,'-0.25') 1.815...
|
||||
- math.atan2(0.75,'-0.25') 1.892...
|
||||
- math.atan2('-1','-0.25') -1.81...
|
||||
- math.atan2('-0.25','-0.25') -2.35...
|
||||
--- checkallerrors
|
||||
- math.atan2() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.atan2(nil) ...bad argument...
|
||||
- math.atan2('abc') ...bad argument...
|
||||
- math.atan2(true) ...bad argument...
|
||||
- math.atan2(<function>) ...bad argument...
|
||||
- math.atan2(<table>) ...bad argument...
|
||||
- math.atan2(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.atan2(nil,1) ...bad argument...
|
||||
- math.atan2('abc',1) ...bad argument...
|
||||
- math.atan2(true,1) ...bad argument...
|
||||
- math.atan2(<function>,1) ...bad argument...
|
||||
- math.atan2(<table>,1) ...bad argument...
|
||||
- math.atan2(<thread>,1) ...bad argument...
|
||||
- math.atan2(nil,0.75) ...bad argument...
|
||||
- math.atan2('abc',0.75) ...bad argument...
|
||||
- math.atan2(true,0.75) ...bad argument...
|
||||
- math.atan2(<function>,0.75) ...bad argument...
|
||||
- math.atan2(<table>,0.75) ...bad argument...
|
||||
- math.atan2(<thread>,0.75) ...bad argument...
|
||||
- math.atan2(nil,'-1') ...bad argument...
|
||||
- math.atan2('abc','-1') ...bad argument...
|
||||
- math.atan2(true,'-1') ...bad argument...
|
||||
- math.atan2(<function>,'-1') ...bad argument...
|
||||
- math.atan2(<table>,'-1') ...bad argument...
|
||||
- math.atan2(<thread>,'-1') ...bad argument...
|
||||
- math.atan2(nil,'-0.25') ...bad argument...
|
||||
- math.atan2('abc','-0.25') ...bad argument...
|
||||
- math.atan2(true,'-0.25') ...bad argument...
|
||||
- math.atan2(<function>,'-0.25') ...bad argument...
|
||||
- math.atan2(<table>,'-0.25') ...bad argument...
|
||||
- math.atan2(<thread>,'-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.atan2(1) ...bad argument...
|
||||
- math.atan2(0.75) ...bad argument...
|
||||
- math.atan2('-1') ...bad argument...
|
||||
- math.atan2('-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.atan2(1,nil) ...bad argument...
|
||||
- math.atan2(0.75,nil) ...bad argument...
|
||||
- math.atan2('-1',nil) ...bad argument...
|
||||
- math.atan2('-0.25',nil) ...bad argument...
|
||||
- math.atan2(1,'abc') ...bad argument...
|
||||
- math.atan2(0.75,'abc') ...bad argument...
|
||||
- math.atan2('-1','abc') ...bad argument...
|
||||
- math.atan2('-0.25','abc') ...bad argument...
|
||||
- math.atan2(1,true) ...bad argument...
|
||||
- math.atan2(0.75,true) ...bad argument...
|
||||
- math.atan2('-1',true) ...bad argument...
|
||||
- math.atan2('-0.25',true) ...bad argument...
|
||||
- math.atan2(1,<function>) ...bad argument...
|
||||
- math.atan2(0.75,<function>) ...bad argument...
|
||||
- math.atan2('-1',<function>) ...bad argument...
|
||||
- math.atan2('-0.25',<function>) ...bad argument...
|
||||
- math.atan2(1,<table>) ...bad argument...
|
||||
- math.atan2(0.75,<table>) ...bad argument...
|
||||
- math.atan2('-1',<table>) ...bad argument...
|
||||
- math.atan2('-0.25',<table>) ...bad argument...
|
||||
- math.atan2(1,<thread>) ...bad argument...
|
||||
- math.atan2(0.75,<thread>) ...bad argument...
|
||||
- math.atan2('-1',<thread>) ...bad argument...
|
||||
- math.atan2('-0.25',<thread>) ...bad argument...
|
||||
====== math.pow ======
|
||||
--- checkallpass
|
||||
- math.pow(1,1) 1
|
||||
- math.pow(0.75,1) 0.75
|
||||
- math.pow('2',1) 2
|
||||
- math.pow('2.5',1) 2.5
|
||||
- math.pow(1,0.75) 1
|
||||
- math.pow(0.75,0.75) 0.805...
|
||||
- math.pow('2',0.75) 1.681...
|
||||
- math.pow('2.5',0.75) 1.988...
|
||||
- math.pow(1,'-1') 1
|
||||
- math.pow(0.75,'-1') 1.333...
|
||||
- math.pow('2','-1') 0.5
|
||||
- math.pow('2.5','-1') 0.4
|
||||
- math.pow(1,'-0.25') 1
|
||||
- math.pow(0.75,'-0.25') 1.074...
|
||||
- math.pow('2','-0.25') 0.840...
|
||||
- math.pow('2.5','-0.25') 0.795...
|
||||
--- checkallerrors
|
||||
- math.pow() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.pow(nil) ...bad argument...
|
||||
- math.pow('abc') ...bad argument...
|
||||
- math.pow(true) ...bad argument...
|
||||
- math.pow(<function>) ...bad argument...
|
||||
- math.pow(<table>) ...bad argument...
|
||||
- math.pow(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.pow(nil,1) ...bad argument...
|
||||
- math.pow('abc',1) ...bad argument...
|
||||
- math.pow(true,1) ...bad argument...
|
||||
- math.pow(<function>,1) ...bad argument...
|
||||
- math.pow(<table>,1) ...bad argument...
|
||||
- math.pow(<thread>,1) ...bad argument...
|
||||
- math.pow(nil,0.75) ...bad argument...
|
||||
- math.pow('abc',0.75) ...bad argument...
|
||||
- math.pow(true,0.75) ...bad argument...
|
||||
- math.pow(<function>,0.75) ...bad argument...
|
||||
- math.pow(<table>,0.75) ...bad argument...
|
||||
- math.pow(<thread>,0.75) ...bad argument...
|
||||
- math.pow(nil,'-1') ...bad argument...
|
||||
- math.pow('abc','-1') ...bad argument...
|
||||
- math.pow(true,'-1') ...bad argument...
|
||||
- math.pow(<function>,'-1') ...bad argument...
|
||||
- math.pow(<table>,'-1') ...bad argument...
|
||||
- math.pow(<thread>,'-1') ...bad argument...
|
||||
- math.pow(nil,'-0.25') ...bad argument...
|
||||
- math.pow('abc','-0.25') ...bad argument...
|
||||
- math.pow(true,'-0.25') ...bad argument...
|
||||
- math.pow(<function>,'-0.25') ...bad argument...
|
||||
- math.pow(<table>,'-0.25') ...bad argument...
|
||||
- math.pow(<thread>,'-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.pow(1) ...bad argument...
|
||||
- math.pow(0.75) ...bad argument...
|
||||
- math.pow('-1') ...bad argument...
|
||||
- math.pow('-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.pow(1,nil) ...bad argument...
|
||||
- math.pow(0.75,nil) ...bad argument...
|
||||
- math.pow('-1',nil) ...bad argument...
|
||||
- math.pow('-0.25',nil) ...bad argument...
|
||||
- math.pow(1,'abc') ...bad argument...
|
||||
- math.pow(0.75,'abc') ...bad argument...
|
||||
- math.pow('-1','abc') ...bad argument...
|
||||
- math.pow('-0.25','abc') ...bad argument...
|
||||
- math.pow(1,true) ...bad argument...
|
||||
- math.pow(0.75,true) ...bad argument...
|
||||
- math.pow('-1',true) ...bad argument...
|
||||
- math.pow('-0.25',true) ...bad argument...
|
||||
- math.pow(1,<function>) ...bad argument...
|
||||
- math.pow(0.75,<function>) ...bad argument...
|
||||
- math.pow('-1',<function>) ...bad argument...
|
||||
- math.pow('-0.25',<function>) ...bad argument...
|
||||
- math.pow(1,<table>) ...bad argument...
|
||||
- math.pow(0.75,<table>) ...bad argument...
|
||||
- math.pow('-1',<table>) ...bad argument...
|
||||
- math.pow('-0.25',<table>) ...bad argument...
|
||||
- math.pow(1,<thread>) ...bad argument...
|
||||
- math.pow(0.75,<thread>) ...bad argument...
|
||||
- math.pow('-1',<thread>) ...bad argument...
|
||||
- math.pow('-0.25',<thread>) ...bad argument...
|
||||
====== math.fmod ======
|
||||
--- checkallpass
|
||||
- math.fmod(1,1) 0
|
||||
- math.fmod(0.75,1) 0.75
|
||||
- math.fmod('2',1) 0
|
||||
- math.fmod('2.5',1) 0.5
|
||||
- math.fmod(1,0.75) 0.25
|
||||
- math.fmod(0.75,0.75) 0
|
||||
- math.fmod('2',0.75) 0.5
|
||||
- math.fmod('2.5',0.75) 0.25
|
||||
- math.fmod(1,'-1') 0
|
||||
- math.fmod(0.75,'-1') 0.75
|
||||
- math.fmod('2','-1') 0
|
||||
- math.fmod('2.5','-1') 0.5
|
||||
- math.fmod(1,'-0.25') 0
|
||||
- math.fmod(0.75,'-0.25') 0
|
||||
- math.fmod('2','-0.25') 0
|
||||
- math.fmod('2.5','-0.25') 0
|
||||
--- checkallerrors
|
||||
- math.fmod() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.fmod(nil) ...bad argument...
|
||||
- math.fmod('abc') ...bad argument...
|
||||
- math.fmod(true) ...bad argument...
|
||||
- math.fmod(<function>) ...bad argument...
|
||||
- math.fmod(<table>) ...bad argument...
|
||||
- math.fmod(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.fmod(nil,1) ...bad argument...
|
||||
- math.fmod('abc',1) ...bad argument...
|
||||
- math.fmod(true,1) ...bad argument...
|
||||
- math.fmod(<function>,1) ...bad argument...
|
||||
- math.fmod(<table>,1) ...bad argument...
|
||||
- math.fmod(<thread>,1) ...bad argument...
|
||||
- math.fmod(nil,0.75) ...bad argument...
|
||||
- math.fmod('abc',0.75) ...bad argument...
|
||||
- math.fmod(true,0.75) ...bad argument...
|
||||
- math.fmod(<function>,0.75) ...bad argument...
|
||||
- math.fmod(<table>,0.75) ...bad argument...
|
||||
- math.fmod(<thread>,0.75) ...bad argument...
|
||||
- math.fmod(nil,'-1') ...bad argument...
|
||||
- math.fmod('abc','-1') ...bad argument...
|
||||
- math.fmod(true,'-1') ...bad argument...
|
||||
- math.fmod(<function>,'-1') ...bad argument...
|
||||
- math.fmod(<table>,'-1') ...bad argument...
|
||||
- math.fmod(<thread>,'-1') ...bad argument...
|
||||
- math.fmod(nil,'-0.25') ...bad argument...
|
||||
- math.fmod('abc','-0.25') ...bad argument...
|
||||
- math.fmod(true,'-0.25') ...bad argument...
|
||||
- math.fmod(<function>,'-0.25') ...bad argument...
|
||||
- math.fmod(<table>,'-0.25') ...bad argument...
|
||||
- math.fmod(<thread>,'-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.fmod(1) ...bad argument...
|
||||
- math.fmod(0.75) ...bad argument...
|
||||
- math.fmod('-1') ...bad argument...
|
||||
- math.fmod('-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.fmod(1,nil) ...bad argument...
|
||||
- math.fmod(0.75,nil) ...bad argument...
|
||||
- math.fmod('-1',nil) ...bad argument...
|
||||
- math.fmod('-0.25',nil) ...bad argument...
|
||||
- math.fmod(1,'abc') ...bad argument...
|
||||
- math.fmod(0.75,'abc') ...bad argument...
|
||||
- math.fmod('-1','abc') ...bad argument...
|
||||
- math.fmod('-0.25','abc') ...bad argument...
|
||||
- math.fmod(1,true) ...bad argument...
|
||||
- math.fmod(0.75,true) ...bad argument...
|
||||
- math.fmod('-1',true) ...bad argument...
|
||||
- math.fmod('-0.25',true) ...bad argument...
|
||||
- math.fmod(1,<function>) ...bad argument...
|
||||
- math.fmod(0.75,<function>) ...bad argument...
|
||||
- math.fmod('-1',<function>) ...bad argument...
|
||||
- math.fmod('-0.25',<function>) ...bad argument...
|
||||
- math.fmod(1,<table>) ...bad argument...
|
||||
- math.fmod(0.75,<table>) ...bad argument...
|
||||
- math.fmod('-1',<table>) ...bad argument...
|
||||
- math.fmod('-0.25',<table>) ...bad argument...
|
||||
- math.fmod(1,<thread>) ...bad argument...
|
||||
- math.fmod(0.75,<thread>) ...bad argument...
|
||||
- math.fmod('-1',<thread>) ...bad argument...
|
||||
- math.fmod('-0.25',<thread>) ...bad argument...
|
||||
====== math.max ======
|
||||
--- checkallpass
|
||||
- math.max(1) 1
|
||||
- math.max(0.75) 0.75
|
||||
- math.max('-1') -1
|
||||
- math.max('-0.25') -0.25...
|
||||
--- checkallpass
|
||||
- math.max(1,1) 1
|
||||
- math.max(0.75,1) 1
|
||||
- math.max('-1',1) 1
|
||||
- math.max('-0.25',1) 1
|
||||
- math.max(1,0.75) 1
|
||||
- math.max(0.75,0.75) 0.75
|
||||
- math.max('-1',0.75) 0.75
|
||||
- math.max('-0.25',0.75) 0.75
|
||||
- math.max(1,'-1') 1
|
||||
- math.max(0.75,'-1') 0.75
|
||||
- math.max('-1','-1') -1
|
||||
- math.max('-0.25','-1') -0.25...
|
||||
- math.max(1,'-0.25') 1
|
||||
- math.max(0.75,'-0.25') 0.75
|
||||
- math.max('-1','-0.25') -0.25...
|
||||
- math.max('-0.25','-0.25') -0.25...
|
||||
--- checkallerrors
|
||||
- math.max() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.max('abc') ...bad argument...
|
||||
- math.max(true) ...bad argument...
|
||||
- math.max(<function>) ...bad argument...
|
||||
- math.max(<table>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.max(1,'abc') ...bad argument...
|
||||
- math.max(0.75,'abc') ...bad argument...
|
||||
- math.max('-1','abc') ...bad argument...
|
||||
- math.max('-0.25','abc') ...bad argument...
|
||||
- math.max(1,true) ...bad argument...
|
||||
- math.max(0.75,true) ...bad argument...
|
||||
- math.max('-1',true) ...bad argument...
|
||||
- math.max('-0.25',true) ...bad argument...
|
||||
- math.max(1,<function>) ...bad argument...
|
||||
- math.max(0.75,<function>) ...bad argument...
|
||||
- math.max('-1',<function>) ...bad argument...
|
||||
- math.max('-0.25',<function>) ...bad argument...
|
||||
- math.max(1,<table>) ...bad argument...
|
||||
- math.max(0.75,<table>) ...bad argument...
|
||||
- math.max('-1',<table>) ...bad argument...
|
||||
- math.max('-0.25',<table>) ...bad argument...
|
||||
====== math.min ======
|
||||
--- checkallpass
|
||||
- math.min(1) 1
|
||||
- math.min(0.75) 0.75
|
||||
- math.min('-1') -1
|
||||
- math.min('-0.25') -0.25...
|
||||
--- checkallpass
|
||||
- math.min(1,1) 1
|
||||
- math.min(0.75,1) 0.75
|
||||
- math.min('-1',1) -1
|
||||
- math.min('-0.25',1) -0.25...
|
||||
- math.min(1,0.75) 0.75
|
||||
- math.min(0.75,0.75) 0.75
|
||||
- math.min('-1',0.75) -1
|
||||
- math.min('-0.25',0.75) -0.25...
|
||||
- math.min(1,'-1') -1
|
||||
- math.min(0.75,'-1') -1
|
||||
- math.min('-1','-1') -1
|
||||
- math.min('-0.25','-1') -1
|
||||
- math.min(1,'-0.25') -0.25...
|
||||
- math.min(0.75,'-0.25') -0.25...
|
||||
- math.min('-1','-0.25') -1
|
||||
- math.min('-0.25','-0.25') -0.25...
|
||||
--- checkallerrors
|
||||
- math.min() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.min('abc') ...bad argument...
|
||||
- math.min(true) ...bad argument...
|
||||
- math.min(<function>) ...bad argument...
|
||||
- math.min(<table>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.min(1,'abc') ...bad argument...
|
||||
- math.min(0.75,'abc') ...bad argument...
|
||||
- math.min('-1','abc') ...bad argument...
|
||||
- math.min('-0.25','abc') ...bad argument...
|
||||
- math.min(1,true) ...bad argument...
|
||||
- math.min(0.75,true) ...bad argument...
|
||||
- math.min('-1',true) ...bad argument...
|
||||
- math.min('-0.25',true) ...bad argument...
|
||||
- math.min(1,<function>) ...bad argument...
|
||||
- math.min(0.75,<function>) ...bad argument...
|
||||
- math.min('-1',<function>) ...bad argument...
|
||||
- math.min('-0.25',<function>) ...bad argument...
|
||||
- math.min(1,<table>) ...bad argument...
|
||||
- math.min(0.75,<table>) ...bad argument...
|
||||
- math.min('-1',<table>) ...bad argument...
|
||||
- math.min('-0.25',<table>) ...bad argument...
|
||||
====== math.random ======
|
||||
--- checkallpass
|
||||
- math.random() number
|
||||
--- checkallpass
|
||||
- math.random(3) number
|
||||
- math.random(4.5) number
|
||||
- math.random('6.7') number
|
||||
--- checkallpass
|
||||
- math.random(3,8) number
|
||||
- math.random(4.5,8) number
|
||||
- math.random('6.7',8) number
|
||||
- math.random(3,9.1) number
|
||||
- math.random(4.5,9.1) number
|
||||
- math.random('6.7',9.1) number
|
||||
- math.random(3,'12.34') number
|
||||
- math.random(4.5,'12.34') number
|
||||
- math.random('6.7','12.34') number
|
||||
--- checkallpass
|
||||
- math.random(-4,-1) number
|
||||
- math.random(-5.6,-1) number
|
||||
- math.random('-7',-1) number
|
||||
- math.random('-8.9',-1) number
|
||||
- math.random(-4,100) number
|
||||
- math.random(-5.6,100) number
|
||||
- math.random('-7',100) number
|
||||
- math.random('-8.9',100) number
|
||||
- math.random(-4,23.45...) number
|
||||
- math.random(-5.6,23.45...) number
|
||||
- math.random('-7',23.45...) number
|
||||
- math.random('-8.9',23.45...) number
|
||||
- math.random(-4,'-1.23') number
|
||||
- math.random(-5.6,'-1.23') number
|
||||
- math.random('-7','-1.23') number
|
||||
- math.random('-8.9','-1.23') number
|
||||
--- checkallerrors
|
||||
- math.random(-4) ...interval is empty...
|
||||
- math.random(-5.6) ...interval is empty...
|
||||
- math.random('-7') ...interval is empty...
|
||||
- math.random('-8.9') ...interval is empty...
|
||||
--- checkallerrors
|
||||
- math.random(8,3) ...interval is empty...
|
||||
- math.random(9.1,3) ...interval is empty...
|
||||
- math.random('12.34',3) ...interval is empty...
|
||||
- math.random(8,4.5) ...interval is empty...
|
||||
- math.random(9.1,4.5) ...interval is empty...
|
||||
- math.random('12.34',4.5) ...interval is empty...
|
||||
- math.random(8,'6.7') ...interval is empty...
|
||||
- math.random(9.1,'6.7') ...interval is empty...
|
||||
- math.random('12.34','6.7') ...interval is empty...
|
||||
--- checkallerrors
|
||||
- math.random('abc',8) ...bad argument...
|
||||
- math.random(true,8) ...bad argument...
|
||||
- math.random(<table>,8) ...bad argument...
|
||||
- math.random(<function>,8) ...bad argument...
|
||||
- math.random('abc',9.1) ...bad argument...
|
||||
- math.random(true,9.1) ...bad argument...
|
||||
- math.random(<table>,9.1) ...bad argument...
|
||||
- math.random(<function>,9.1) ...bad argument...
|
||||
- math.random('abc','12.34') ...bad argument...
|
||||
- math.random(true,'12.34') ...bad argument...
|
||||
- math.random(<table>,'12.34') ...bad argument...
|
||||
- math.random(<function>,'12.34') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.random(3,'abc') ...bad argument...
|
||||
- math.random(4.5,'abc') ...bad argument...
|
||||
- math.random('6.7','abc') ...bad argument...
|
||||
- math.random(3,true) ...bad argument...
|
||||
- math.random(4.5,true) ...bad argument...
|
||||
- math.random('6.7',true) ...bad argument...
|
||||
- math.random(3,<table>) ...bad argument...
|
||||
- math.random(4.5,<table>) ...bad argument...
|
||||
- math.random('6.7',<table>) ...bad argument...
|
||||
- math.random(3,<function>) ...bad argument...
|
||||
- math.random(4.5,<function>) ...bad argument...
|
||||
- math.random('6.7',<function>) ...bad argument...
|
||||
====== math.ldexp ======
|
||||
--- checkallpass
|
||||
- math.ldexp(1,-3) 0.125...
|
||||
- math.ldexp(0.75,-3) 0.093...
|
||||
- math.ldexp('-1',-3) -0.12...
|
||||
- math.ldexp('-0.25',-3) -0.03...
|
||||
- math.ldexp(1,0) 1
|
||||
- math.ldexp(0.75,0) 0.75
|
||||
- math.ldexp('-1',0) -1
|
||||
- math.ldexp('-0.25',0) -0.25...
|
||||
- math.ldexp(1,3) 8
|
||||
- math.ldexp(0.75,3) 6
|
||||
- math.ldexp('-1',3) -8
|
||||
- math.ldexp('-0.25',3) -2
|
||||
- math.ldexp(1,9.1) 512
|
||||
- math.ldexp(0.75,9.1) 384
|
||||
- math.ldexp('-1',9.1) -512
|
||||
- math.ldexp('-0.25',9.1) -128
|
||||
- math.ldexp(1,'12.34') 4096
|
||||
- math.ldexp(0.75,'12.34') 3072
|
||||
- math.ldexp('-1','12.34') -4096...
|
||||
- math.ldexp('-0.25','12.34') -1024...
|
||||
--- checkallerrors
|
||||
- math.ldexp() ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.ldexp(nil) ...bad argument...
|
||||
- math.ldexp('abc') ...bad argument...
|
||||
- math.ldexp(true) ...bad argument...
|
||||
- math.ldexp(<function>) ...bad argument...
|
||||
- math.ldexp(<table>) ...bad argument...
|
||||
- math.ldexp(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.ldexp(nil,-3) ...bad argument...
|
||||
- math.ldexp('abc',-3) ...bad argument...
|
||||
- math.ldexp(true,-3) ...bad argument...
|
||||
- math.ldexp(<function>,-3) ...bad argument...
|
||||
- math.ldexp(<table>,-3) ...bad argument...
|
||||
- math.ldexp(<thread>,-3) ...bad argument...
|
||||
- math.ldexp(nil,0) ...bad argument...
|
||||
- math.ldexp('abc',0) ...bad argument...
|
||||
- math.ldexp(true,0) ...bad argument...
|
||||
- math.ldexp(<function>,0) ...bad argument...
|
||||
- math.ldexp(<table>,0) ...bad argument...
|
||||
- math.ldexp(<thread>,0) ...bad argument...
|
||||
- math.ldexp(nil,3) ...bad argument...
|
||||
- math.ldexp('abc',3) ...bad argument...
|
||||
- math.ldexp(true,3) ...bad argument...
|
||||
- math.ldexp(<function>,3) ...bad argument...
|
||||
- math.ldexp(<table>,3) ...bad argument...
|
||||
- math.ldexp(<thread>,3) ...bad argument...
|
||||
- math.ldexp(nil,9.1) ...bad argument...
|
||||
- math.ldexp('abc',9.1) ...bad argument...
|
||||
- math.ldexp(true,9.1) ...bad argument...
|
||||
- math.ldexp(<function>,9.1) ...bad argument...
|
||||
- math.ldexp(<table>,9.1) ...bad argument...
|
||||
- math.ldexp(<thread>,9.1) ...bad argument...
|
||||
- math.ldexp(nil,'12.34') ...bad argument...
|
||||
- math.ldexp('abc','12.34') ...bad argument...
|
||||
- math.ldexp(true,'12.34') ...bad argument...
|
||||
- math.ldexp(<function>,'12.34') ...bad argument...
|
||||
- math.ldexp(<table>,'12.34') ...bad argument...
|
||||
- math.ldexp(<thread>,'12.34') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.ldexp(1) ...bad argument...
|
||||
- math.ldexp(0.75) ...bad argument...
|
||||
- math.ldexp('-1') ...bad argument...
|
||||
- math.ldexp('-0.25') ...bad argument...
|
||||
--- checkallerrors
|
||||
- math.ldexp(1,nil) ...bad argument...
|
||||
- math.ldexp(0.75,nil) ...bad argument...
|
||||
- math.ldexp('-1',nil) ...bad argument...
|
||||
- math.ldexp('-0.25',nil) ...bad argument...
|
||||
- math.ldexp(1,'abc') ...bad argument...
|
||||
- math.ldexp(0.75,'abc') ...bad argument...
|
||||
- math.ldexp('-1','abc') ...bad argument...
|
||||
- math.ldexp('-0.25','abc') ...bad argument...
|
||||
- math.ldexp(1,true) ...bad argument...
|
||||
- math.ldexp(0.75,true) ...bad argument...
|
||||
- math.ldexp('-1',true) ...bad argument...
|
||||
- math.ldexp('-0.25',true) ...bad argument...
|
||||
- math.ldexp(1,<table>) ...bad argument...
|
||||
- math.ldexp(0.75,<table>) ...bad argument...
|
||||
- math.ldexp('-1',<table>) ...bad argument...
|
||||
- math.ldexp('-0.25',<table>) ...bad argument...
|
||||
- math.ldexp(1,<function>) ...bad argument...
|
||||
- math.ldexp(0.75,<function>) ...bad argument...
|
||||
- math.ldexp('-1',<function>) ...bad argument...
|
||||
- math.ldexp('-0.25',<function>) ...bad argument...
|
||||
33
luaj-test/src/test/resources/errors/modulelibargs.out
Normal file
33
luaj-test/src/test/resources/errors/modulelibargs.out
Normal file
@@ -0,0 +1,33 @@
|
||||
====== require ======
|
||||
--- checkallpass
|
||||
- require('math') table
|
||||
- require('coroutine') table
|
||||
- require('package') table
|
||||
- require('string') table
|
||||
- require('table') table
|
||||
--- checkallerrors
|
||||
- require(1.25) ...not found...
|
||||
--- checkallerrors
|
||||
- require(nil) ...bad argument...
|
||||
- require(true) ...bad argument...
|
||||
- require(<function>) ...bad argument...
|
||||
- require(<table>) ...bad argument...
|
||||
====== package.loadlib ======
|
||||
--- checkallpass
|
||||
- package.loadlib('foo','bar') nil,string,string
|
||||
--- checkallerrors
|
||||
- package.loadlib(nil) ...bad argument...
|
||||
- package.loadlib(true) ...bad argument...
|
||||
- package.loadlib(<table>) ...bad argument...
|
||||
- package.loadlib(<function>) ...bad argument...
|
||||
- package.loadlib(<thread>) ...bad argument...
|
||||
====== package.seeall ======
|
||||
--- checkallpass
|
||||
fail package.seeall(<table>) 'attempt to call a nil value'
|
||||
--- checkallerrors
|
||||
badmsg package.seeall(nil) template='bad argument' actual='attempt to call a nil value'
|
||||
badmsg package.seeall('abc') template='bad argument' actual='attempt to call a nil value'
|
||||
badmsg package.seeall(1.25) template='bad argument' actual='attempt to call a nil value'
|
||||
badmsg package.seeall(true) template='bad argument' actual='attempt to call a nil value'
|
||||
badmsg package.seeall(<function>) template='bad argument' actual='attempt to call a nil value'
|
||||
badmsg package.seeall(<thread>) template='bad argument' actual='attempt to call a nil value'
|
||||
837
luaj-test/src/test/resources/errors/operators.out
Normal file
837
luaj-test/src/test/resources/errors/operators.out
Normal file
@@ -0,0 +1,837 @@
|
||||
====== unary - ======
|
||||
--- checkallpass
|
||||
- negative(1.25) -1.25
|
||||
- negative('789') -789
|
||||
--- checkallerrors
|
||||
- negative(nil) ...attempt to perform arithmetic...
|
||||
- negative('abc') ...attempt to perform arithmetic...
|
||||
- negative(true) ...attempt to perform arithmetic...
|
||||
- negative(<table>) ...attempt to perform arithmetic...
|
||||
- negative(<function>) ...attempt to perform arithmetic...
|
||||
- negative(<thread>) ...attempt to perform arithmetic...
|
||||
====== # ======
|
||||
--- checkallpass
|
||||
- lengthop(<table>) 0
|
||||
--- checkallerrors
|
||||
- lengthop(nil) ...attempt to get length of...
|
||||
needcheck lengthop('abc') 3
|
||||
- lengthop(1.25) ...attempt to get length of...
|
||||
- lengthop(true) ...attempt to get length of...
|
||||
- lengthop(<function>) ...attempt to get length of...
|
||||
- lengthop(<thread>) ...attempt to get length of...
|
||||
====== not ======
|
||||
--- checkallpass
|
||||
- notop(1.25) false
|
||||
- notop('789') false
|
||||
--- checkallpass
|
||||
- notop(nil) true
|
||||
- notop('abc') false
|
||||
- notop(true) false
|
||||
- notop(<table>) false
|
||||
- notop(<function>) false
|
||||
- notop(<thread>) false
|
||||
====== () ======
|
||||
--- checkallpass
|
||||
- funcop(<function>)
|
||||
--- checkallerrors
|
||||
- funcop(nil) ...attempt to call...
|
||||
- funcop('abc') ...attempt to call...
|
||||
- funcop(1.25) ...attempt to call...
|
||||
- funcop(true) ...attempt to call...
|
||||
- funcop(<table>) ...attempt to call...
|
||||
- funcop(<thread>) ...attempt to call...
|
||||
====== .. ======
|
||||
--- checkallpass
|
||||
- concatop('abc','abc') 'abcabc'
|
||||
- concatop(1.25,'abc') '1.25abc'
|
||||
- concatop('abc',1.25) 'abc1.25'
|
||||
- concatop(1.25,1.25) '1.251.25'
|
||||
--- checkallerrors
|
||||
- concatop(nil,'abc') ...attempt to concatenate...
|
||||
- concatop(true,'abc') ...attempt to concatenate...
|
||||
- concatop(<table>,'abc') ...attempt to concatenate...
|
||||
- concatop(<function>,'abc') ...attempt to concatenate...
|
||||
- concatop(<thread>,'abc') ...attempt to concatenate...
|
||||
- concatop(nil,1.25) ...attempt to concatenate...
|
||||
- concatop(true,1.25) ...attempt to concatenate...
|
||||
- concatop(<table>,1.25) ...attempt to concatenate...
|
||||
- concatop(<function>,1.25) ...attempt to concatenate...
|
||||
- concatop(<thread>,1.25) ...attempt to concatenate...
|
||||
--- checkallerrors
|
||||
- concatop('abc',nil) ...attempt to concatenate...
|
||||
- concatop(1.25,nil) ...attempt to concatenate...
|
||||
- concatop('abc',true) ...attempt to concatenate...
|
||||
- concatop(1.25,true) ...attempt to concatenate...
|
||||
- concatop('abc',<table>) ...attempt to concatenate...
|
||||
- concatop(1.25,<table>) ...attempt to concatenate...
|
||||
- concatop('abc',<function>) ...attempt to concatenate...
|
||||
- concatop(1.25,<function>) ...attempt to concatenate...
|
||||
- concatop('abc',<thread>) ...attempt to concatenate...
|
||||
- concatop(1.25,<thread>) ...attempt to concatenate...
|
||||
====== + ======
|
||||
--- checkallpass
|
||||
- plusop(1.25,1.25) 2.5
|
||||
- plusop('789',1.25) 790.25
|
||||
- plusop(1.25,'789') 790.25
|
||||
- plusop('789','789') 1578
|
||||
--- checkallerrors
|
||||
- plusop(nil,1.25) ...attempt to perform arithmetic...
|
||||
- plusop('abc',1.25) ...attempt to perform arithmetic...
|
||||
- plusop(true,1.25) ...attempt to perform arithmetic...
|
||||
- plusop(<table>,1.25) ...attempt to perform arithmetic...
|
||||
- plusop(<function>,1.25) ...attempt to perform arithmetic...
|
||||
- plusop(<thread>,1.25) ...attempt to perform arithmetic...
|
||||
- plusop(nil,'789') ...attempt to perform arithmetic...
|
||||
- plusop('abc','789') ...attempt to perform arithmetic...
|
||||
- plusop(true,'789') ...attempt to perform arithmetic...
|
||||
- plusop(<table>,'789') ...attempt to perform arithmetic...
|
||||
- plusop(<function>,'789') ...attempt to perform arithmetic...
|
||||
- plusop(<thread>,'789') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- plusop(1.25,nil) ...attempt to perform arithmetic...
|
||||
- plusop('789',nil) ...attempt to perform arithmetic...
|
||||
- plusop(1.25,'abc') ...attempt to perform arithmetic...
|
||||
- plusop('789','abc') ...attempt to perform arithmetic...
|
||||
- plusop(1.25,true) ...attempt to perform arithmetic...
|
||||
- plusop('789',true) ...attempt to perform arithmetic...
|
||||
- plusop(1.25,<table>) ...attempt to perform arithmetic...
|
||||
- plusop('789',<table>) ...attempt to perform arithmetic...
|
||||
- plusop(1.25,<function>) ...attempt to perform arithmetic...
|
||||
- plusop('789',<function>) ...attempt to perform arithmetic...
|
||||
- plusop(1.25,<thread>) ...attempt to perform arithmetic...
|
||||
- plusop('789',<thread>) ...attempt to perform arithmetic...
|
||||
====== - ======
|
||||
--- checkallpass
|
||||
- minusop(1.25,1.25) 0
|
||||
- minusop('789',1.25) 787.75
|
||||
- minusop(1.25,'789') -787.75
|
||||
- minusop('789','789') 0
|
||||
--- checkallerrors
|
||||
- minusop(nil,1.25) ...attempt to perform arithmetic...
|
||||
- minusop('abc',1.25) ...attempt to perform arithmetic...
|
||||
- minusop(true,1.25) ...attempt to perform arithmetic...
|
||||
- minusop(<table>,1.25) ...attempt to perform arithmetic...
|
||||
- minusop(<function>,1.25) ...attempt to perform arithmetic...
|
||||
- minusop(<thread>,1.25) ...attempt to perform arithmetic...
|
||||
- minusop(nil,'789') ...attempt to perform arithmetic...
|
||||
- minusop('abc','789') ...attempt to perform arithmetic...
|
||||
- minusop(true,'789') ...attempt to perform arithmetic...
|
||||
- minusop(<table>,'789') ...attempt to perform arithmetic...
|
||||
- minusop(<function>,'789') ...attempt to perform arithmetic...
|
||||
- minusop(<thread>,'789') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- minusop(1.25,nil) ...attempt to perform arithmetic...
|
||||
- minusop('789',nil) ...attempt to perform arithmetic...
|
||||
- minusop(1.25,'abc') ...attempt to perform arithmetic...
|
||||
- minusop('789','abc') ...attempt to perform arithmetic...
|
||||
- minusop(1.25,true) ...attempt to perform arithmetic...
|
||||
- minusop('789',true) ...attempt to perform arithmetic...
|
||||
- minusop(1.25,<table>) ...attempt to perform arithmetic...
|
||||
- minusop('789',<table>) ...attempt to perform arithmetic...
|
||||
- minusop(1.25,<function>) ...attempt to perform arithmetic...
|
||||
- minusop('789',<function>) ...attempt to perform arithmetic...
|
||||
- minusop(1.25,<thread>) ...attempt to perform arithmetic...
|
||||
- minusop('789',<thread>) ...attempt to perform arithmetic...
|
||||
====== * ======
|
||||
--- checkallpass
|
||||
- timesop(1.25,1.25) 1.5625
|
||||
- timesop('789',1.25) 986.25
|
||||
- timesop(1.25,'789') 986.25
|
||||
- timesop('789','789') 622521
|
||||
--- checkallerrors
|
||||
- timesop(nil,1.25) ...attempt to perform arithmetic...
|
||||
- timesop('abc',1.25) ...attempt to perform arithmetic...
|
||||
- timesop(true,1.25) ...attempt to perform arithmetic...
|
||||
- timesop(<table>,1.25) ...attempt to perform arithmetic...
|
||||
- timesop(<function>,1.25) ...attempt to perform arithmetic...
|
||||
- timesop(<thread>,1.25) ...attempt to perform arithmetic...
|
||||
- timesop(nil,'789') ...attempt to perform arithmetic...
|
||||
- timesop('abc','789') ...attempt to perform arithmetic...
|
||||
- timesop(true,'789') ...attempt to perform arithmetic...
|
||||
- timesop(<table>,'789') ...attempt to perform arithmetic...
|
||||
- timesop(<function>,'789') ...attempt to perform arithmetic...
|
||||
- timesop(<thread>,'789') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- timesop(1.25,nil) ...attempt to perform arithmetic...
|
||||
- timesop('789',nil) ...attempt to perform arithmetic...
|
||||
- timesop(1.25,'abc') ...attempt to perform arithmetic...
|
||||
- timesop('789','abc') ...attempt to perform arithmetic...
|
||||
- timesop(1.25,true) ...attempt to perform arithmetic...
|
||||
- timesop('789',true) ...attempt to perform arithmetic...
|
||||
- timesop(1.25,<table>) ...attempt to perform arithmetic...
|
||||
- timesop('789',<table>) ...attempt to perform arithmetic...
|
||||
- timesop(1.25,<function>) ...attempt to perform arithmetic...
|
||||
- timesop('789',<function>) ...attempt to perform arithmetic...
|
||||
- timesop(1.25,<thread>) ...attempt to perform arithmetic...
|
||||
- timesop('789',<thread>) ...attempt to perform arithmetic...
|
||||
====== / ======
|
||||
--- checkallpass
|
||||
- divideop(1.25,1.25) 1
|
||||
- divideop('789',1.25) 631.2
|
||||
- divideop(1.25,'789') 0.001584...
|
||||
- divideop('789','789') 1
|
||||
--- checkallerrors
|
||||
- divideop(nil,1.25) ...attempt to perform arithmetic...
|
||||
- divideop('abc',1.25) ...attempt to perform arithmetic...
|
||||
- divideop(true,1.25) ...attempt to perform arithmetic...
|
||||
- divideop(<table>,1.25) ...attempt to perform arithmetic...
|
||||
- divideop(<function>,1.25) ...attempt to perform arithmetic...
|
||||
- divideop(<thread>,1.25) ...attempt to perform arithmetic...
|
||||
- divideop(nil,'789') ...attempt to perform arithmetic...
|
||||
- divideop('abc','789') ...attempt to perform arithmetic...
|
||||
- divideop(true,'789') ...attempt to perform arithmetic...
|
||||
- divideop(<table>,'789') ...attempt to perform arithmetic...
|
||||
- divideop(<function>,'789') ...attempt to perform arithmetic...
|
||||
- divideop(<thread>,'789') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- divideop(1.25,nil) ...attempt to perform arithmetic...
|
||||
- divideop('789',nil) ...attempt to perform arithmetic...
|
||||
- divideop(1.25,'abc') ...attempt to perform arithmetic...
|
||||
- divideop('789','abc') ...attempt to perform arithmetic...
|
||||
- divideop(1.25,true) ...attempt to perform arithmetic...
|
||||
- divideop('789',true) ...attempt to perform arithmetic...
|
||||
- divideop(1.25,<table>) ...attempt to perform arithmetic...
|
||||
- divideop('789',<table>) ...attempt to perform arithmetic...
|
||||
- divideop(1.25,<function>) ...attempt to perform arithmetic...
|
||||
- divideop('789',<function>) ...attempt to perform arithmetic...
|
||||
- divideop(1.25,<thread>) ...attempt to perform arithmetic...
|
||||
- divideop('789',<thread>) ...attempt to perform arithmetic...
|
||||
====== % ======
|
||||
--- checkallpass
|
||||
- modop(1.25,1.25) 0
|
||||
- modop('789',1.25) 0.25
|
||||
- modop(1.25,'789') 1.25
|
||||
- modop('789','789') 0
|
||||
--- checkallerrors
|
||||
- modop(nil,1.25) ...attempt to perform arithmetic...
|
||||
- modop('abc',1.25) ...attempt to perform arithmetic...
|
||||
- modop(true,1.25) ...attempt to perform arithmetic...
|
||||
- modop(<table>,1.25) ...attempt to perform arithmetic...
|
||||
- modop(<function>,1.25) ...attempt to perform arithmetic...
|
||||
- modop(<thread>,1.25) ...attempt to perform arithmetic...
|
||||
- modop(nil,'789') ...attempt to perform arithmetic...
|
||||
- modop('abc','789') ...attempt to perform arithmetic...
|
||||
- modop(true,'789') ...attempt to perform arithmetic...
|
||||
- modop(<table>,'789') ...attempt to perform arithmetic...
|
||||
- modop(<function>,'789') ...attempt to perform arithmetic...
|
||||
- modop(<thread>,'789') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- modop(1.25,nil) ...attempt to perform arithmetic...
|
||||
- modop('789',nil) ...attempt to perform arithmetic...
|
||||
- modop(1.25,'abc') ...attempt to perform arithmetic...
|
||||
- modop('789','abc') ...attempt to perform arithmetic...
|
||||
- modop(1.25,true) ...attempt to perform arithmetic...
|
||||
- modop('789',true) ...attempt to perform arithmetic...
|
||||
- modop(1.25,<table>) ...attempt to perform arithmetic...
|
||||
- modop('789',<table>) ...attempt to perform arithmetic...
|
||||
- modop(1.25,<function>) ...attempt to perform arithmetic...
|
||||
- modop('789',<function>) ...attempt to perform arithmetic...
|
||||
- modop(1.25,<thread>) ...attempt to perform arithmetic...
|
||||
- modop('789',<thread>) ...attempt to perform arithmetic...
|
||||
====== ^ ======
|
||||
--- checkallpass
|
||||
- powerop(2,3) 8
|
||||
- powerop('2.5',3) 15.625
|
||||
- powerop(2,'3.5') 11.31370...
|
||||
- powerop('2.5','3.5') 24.70529...
|
||||
--- checkallerrors
|
||||
- powerop(nil,3) ...attempt to perform arithmetic...
|
||||
- powerop('abc',3) ...attempt to perform arithmetic...
|
||||
- powerop(true,3) ...attempt to perform arithmetic...
|
||||
- powerop(<table>,3) ...attempt to perform arithmetic...
|
||||
- powerop(<function>,3) ...attempt to perform arithmetic...
|
||||
- powerop(<thread>,3) ...attempt to perform arithmetic...
|
||||
- powerop(nil,'3.1') ...attempt to perform arithmetic...
|
||||
- powerop('abc','3.1') ...attempt to perform arithmetic...
|
||||
- powerop(true,'3.1') ...attempt to perform arithmetic...
|
||||
- powerop(<table>,'3.1') ...attempt to perform arithmetic...
|
||||
- powerop(<function>,'3.1') ...attempt to perform arithmetic...
|
||||
- powerop(<thread>,'3.1') ...attempt to perform arithmetic...
|
||||
--- checkallerrors
|
||||
- powerop(2,nil) ...attempt to perform arithmetic...
|
||||
- powerop('2.1',nil) ...attempt to perform arithmetic...
|
||||
- powerop(2,'abc') ...attempt to perform arithmetic...
|
||||
- powerop('2.1','abc') ...attempt to perform arithmetic...
|
||||
- powerop(2,true) ...attempt to perform arithmetic...
|
||||
- powerop('2.1',true) ...attempt to perform arithmetic...
|
||||
- powerop(2,<table>) ...attempt to perform arithmetic...
|
||||
- powerop('2.1',<table>) ...attempt to perform arithmetic...
|
||||
- powerop(2,<function>) ...attempt to perform arithmetic...
|
||||
- powerop('2.1',<function>) ...attempt to perform arithmetic...
|
||||
- powerop(2,<thread>) ...attempt to perform arithmetic...
|
||||
- powerop('2.1',<thread>) ...attempt to perform arithmetic...
|
||||
====== == ======
|
||||
--- checkallpass
|
||||
- equalsop(nil,nil) true
|
||||
- equalsop('abc',nil) false
|
||||
- equalsop(1.25,nil) false
|
||||
- equalsop(true,nil) false
|
||||
- equalsop(<table>,nil) false
|
||||
- equalsop(<function>,nil) false
|
||||
- equalsop(<thread>,nil) false
|
||||
- equalsop(nil,'abc') false
|
||||
- equalsop('abc','abc') true
|
||||
- equalsop(1.25,'abc') false
|
||||
- equalsop(true,'abc') false
|
||||
- equalsop(<table>,'abc') false
|
||||
- equalsop(<function>,'abc') false
|
||||
- equalsop(<thread>,'abc') false
|
||||
- equalsop(nil,1.25) false
|
||||
- equalsop('abc',1.25) false
|
||||
- equalsop(1.25,1.25) true
|
||||
- equalsop(true,1.25) false
|
||||
- equalsop(<table>,1.25) false
|
||||
- equalsop(<function>,1.25) false
|
||||
- equalsop(<thread>,1.25) false
|
||||
- equalsop(nil,true) false
|
||||
- equalsop('abc',true) false
|
||||
- equalsop(1.25,true) false
|
||||
- equalsop(true,true) true
|
||||
- equalsop(<table>,true) false
|
||||
- equalsop(<function>,true) false
|
||||
- equalsop(<thread>,true) false
|
||||
- equalsop(nil,<table>) false
|
||||
- equalsop('abc',<table>) false
|
||||
- equalsop(1.25,<table>) false
|
||||
- equalsop(true,<table>) false
|
||||
- equalsop(<table>,<table>) true
|
||||
- equalsop(<function>,<table>) false
|
||||
- equalsop(<thread>,<table>) false
|
||||
- equalsop(nil,<function>) false
|
||||
- equalsop('abc',<function>) false
|
||||
- equalsop(1.25,<function>) false
|
||||
- equalsop(true,<function>) false
|
||||
- equalsop(<table>,<function>) false
|
||||
- equalsop(<function>,<function>) true
|
||||
- equalsop(<thread>,<function>) false
|
||||
- equalsop(nil,<thread>) false
|
||||
- equalsop('abc',<thread>) false
|
||||
- equalsop(1.25,<thread>) false
|
||||
- equalsop(true,<thread>) false
|
||||
- equalsop(<table>,<thread>) false
|
||||
- equalsop(<function>,<thread>) false
|
||||
- equalsop(<thread>,<thread>) true
|
||||
====== ~= ======
|
||||
--- checkallpass
|
||||
- noteqop(nil,nil) false
|
||||
- noteqop('abc',nil) true
|
||||
- noteqop(1.25,nil) true
|
||||
- noteqop(true,nil) true
|
||||
- noteqop(<table>,nil) true
|
||||
- noteqop(<function>,nil) true
|
||||
- noteqop(<thread>,nil) true
|
||||
- noteqop(nil,'abc') true
|
||||
- noteqop('abc','abc') false
|
||||
- noteqop(1.25,'abc') true
|
||||
- noteqop(true,'abc') true
|
||||
- noteqop(<table>,'abc') true
|
||||
- noteqop(<function>,'abc') true
|
||||
- noteqop(<thread>,'abc') true
|
||||
- noteqop(nil,1.25) true
|
||||
- noteqop('abc',1.25) true
|
||||
- noteqop(1.25,1.25) false
|
||||
- noteqop(true,1.25) true
|
||||
- noteqop(<table>,1.25) true
|
||||
- noteqop(<function>,1.25) true
|
||||
- noteqop(<thread>,1.25) true
|
||||
- noteqop(nil,true) true
|
||||
- noteqop('abc',true) true
|
||||
- noteqop(1.25,true) true
|
||||
- noteqop(true,true) false
|
||||
- noteqop(<table>,true) true
|
||||
- noteqop(<function>,true) true
|
||||
- noteqop(<thread>,true) true
|
||||
- noteqop(nil,<table>) true
|
||||
- noteqop('abc',<table>) true
|
||||
- noteqop(1.25,<table>) true
|
||||
- noteqop(true,<table>) true
|
||||
- noteqop(<table>,<table>) false
|
||||
- noteqop(<function>,<table>) true
|
||||
- noteqop(<thread>,<table>) true
|
||||
- noteqop(nil,<function>) true
|
||||
- noteqop('abc',<function>) true
|
||||
- noteqop(1.25,<function>) true
|
||||
- noteqop(true,<function>) true
|
||||
- noteqop(<table>,<function>) true
|
||||
- noteqop(<function>,<function>) false
|
||||
- noteqop(<thread>,<function>) true
|
||||
- noteqop(nil,<thread>) true
|
||||
- noteqop('abc',<thread>) true
|
||||
- noteqop(1.25,<thread>) true
|
||||
- noteqop(true,<thread>) true
|
||||
- noteqop(<table>,<thread>) true
|
||||
- noteqop(<function>,<thread>) true
|
||||
- noteqop(<thread>,<thread>) false
|
||||
====== <= ======
|
||||
--- checkallpass
|
||||
- leop(1.25,1.25) true
|
||||
--- checkallpass
|
||||
- leop('abc','abc') true
|
||||
- leop('789','abc') true
|
||||
- leop('abc','789') false
|
||||
- leop('789','789') true
|
||||
--- checkallerrors
|
||||
- leop(nil,1.25) ...attempt to compare...
|
||||
- leop('abc',1.25) ...attempt to compare...
|
||||
- leop(true,1.25) ...attempt to compare...
|
||||
- leop(<table>,1.25) ...attempt to compare...
|
||||
- leop(<function>,1.25) ...attempt to compare...
|
||||
- leop(<thread>,1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- leop('789',1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- leop(nil,'abc') ...attempt to compare...
|
||||
- leop(true,'abc') ...attempt to compare...
|
||||
- leop(<table>,'abc') ...attempt to compare...
|
||||
- leop(<function>,'abc') ...attempt to compare...
|
||||
- leop(<thread>,'abc') ...attempt to compare...
|
||||
- leop(nil,'789') ...attempt to compare...
|
||||
- leop(true,'789') ...attempt to compare...
|
||||
- leop(<table>,'789') ...attempt to compare...
|
||||
- leop(<function>,'789') ...attempt to compare...
|
||||
- leop(<thread>,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- leop(1.25,nil) ...attempt to compare...
|
||||
- leop(1.25,'abc') ...attempt to compare...
|
||||
- leop(1.25,true) ...attempt to compare...
|
||||
- leop(1.25,<table>) ...attempt to compare...
|
||||
- leop(1.25,<function>) ...attempt to compare...
|
||||
- leop(1.25,<thread>) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- leop(1.25,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- leop('abc',nil) ...attempt to compare...
|
||||
- leop('789',nil) ...attempt to compare...
|
||||
- leop('abc',true) ...attempt to compare...
|
||||
- leop('789',true) ...attempt to compare...
|
||||
- leop('abc',<table>) ...attempt to compare...
|
||||
- leop('789',<table>) ...attempt to compare...
|
||||
- leop('abc',<function>) ...attempt to compare...
|
||||
- leop('789',<function>) ...attempt to compare...
|
||||
- leop('abc',<thread>) ...attempt to compare...
|
||||
- leop('789',<thread>) ...attempt to compare...
|
||||
====== >= ======
|
||||
--- checkallpass
|
||||
- geop(1.25,1.25) true
|
||||
--- checkallpass
|
||||
- geop('abc','abc') true
|
||||
- geop('789','abc') false
|
||||
- geop('abc','789') true
|
||||
- geop('789','789') true
|
||||
--- checkallerrors
|
||||
- geop(nil,1.25) ...attempt to compare...
|
||||
- geop('abc',1.25) ...attempt to compare...
|
||||
- geop(true,1.25) ...attempt to compare...
|
||||
- geop(<table>,1.25) ...attempt to compare...
|
||||
- geop(<function>,1.25) ...attempt to compare...
|
||||
- geop(<thread>,1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- geop('789',1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- geop(nil,'abc') ...attempt to compare...
|
||||
- geop(true,'abc') ...attempt to compare...
|
||||
- geop(<table>,'abc') ...attempt to compare...
|
||||
- geop(<function>,'abc') ...attempt to compare...
|
||||
- geop(<thread>,'abc') ...attempt to compare...
|
||||
- geop(nil,'789') ...attempt to compare...
|
||||
- geop(true,'789') ...attempt to compare...
|
||||
- geop(<table>,'789') ...attempt to compare...
|
||||
- geop(<function>,'789') ...attempt to compare...
|
||||
- geop(<thread>,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- geop(1.25,nil) ...attempt to compare...
|
||||
- geop(1.25,'abc') ...attempt to compare...
|
||||
- geop(1.25,true) ...attempt to compare...
|
||||
- geop(1.25,<table>) ...attempt to compare...
|
||||
- geop(1.25,<function>) ...attempt to compare...
|
||||
- geop(1.25,<thread>) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- geop(1.25,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- geop('abc',nil) ...attempt to compare...
|
||||
- geop('789',nil) ...attempt to compare...
|
||||
- geop('abc',true) ...attempt to compare...
|
||||
- geop('789',true) ...attempt to compare...
|
||||
- geop('abc',<table>) ...attempt to compare...
|
||||
- geop('789',<table>) ...attempt to compare...
|
||||
- geop('abc',<function>) ...attempt to compare...
|
||||
- geop('789',<function>) ...attempt to compare...
|
||||
- geop('abc',<thread>) ...attempt to compare...
|
||||
- geop('789',<thread>) ...attempt to compare...
|
||||
====== < ======
|
||||
--- checkallpass
|
||||
- ltop(1.25,1.25) false
|
||||
--- checkallpass
|
||||
- ltop('abc','abc') false
|
||||
- ltop('789','abc') true
|
||||
- ltop('abc','789') false
|
||||
- ltop('789','789') false
|
||||
--- checkallerrors
|
||||
- ltop(nil,1.25) ...attempt to compare...
|
||||
- ltop('abc',1.25) ...attempt to compare...
|
||||
- ltop(true,1.25) ...attempt to compare...
|
||||
- ltop(<table>,1.25) ...attempt to compare...
|
||||
- ltop(<function>,1.25) ...attempt to compare...
|
||||
- ltop(<thread>,1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- ltop('789',1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- ltop(nil,'abc') ...attempt to compare...
|
||||
- ltop(true,'abc') ...attempt to compare...
|
||||
- ltop(<table>,'abc') ...attempt to compare...
|
||||
- ltop(<function>,'abc') ...attempt to compare...
|
||||
- ltop(<thread>,'abc') ...attempt to compare...
|
||||
- ltop(nil,'789') ...attempt to compare...
|
||||
- ltop(true,'789') ...attempt to compare...
|
||||
- ltop(<table>,'789') ...attempt to compare...
|
||||
- ltop(<function>,'789') ...attempt to compare...
|
||||
- ltop(<thread>,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- ltop(1.25,nil) ...attempt to compare...
|
||||
- ltop(1.25,'abc') ...attempt to compare...
|
||||
- ltop(1.25,true) ...attempt to compare...
|
||||
- ltop(1.25,<table>) ...attempt to compare...
|
||||
- ltop(1.25,<function>) ...attempt to compare...
|
||||
- ltop(1.25,<thread>) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- ltop(1.25,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- ltop('abc',nil) ...attempt to compare...
|
||||
- ltop('789',nil) ...attempt to compare...
|
||||
- ltop('abc',true) ...attempt to compare...
|
||||
- ltop('789',true) ...attempt to compare...
|
||||
- ltop('abc',<table>) ...attempt to compare...
|
||||
- ltop('789',<table>) ...attempt to compare...
|
||||
- ltop('abc',<function>) ...attempt to compare...
|
||||
- ltop('789',<function>) ...attempt to compare...
|
||||
- ltop('abc',<thread>) ...attempt to compare...
|
||||
- ltop('789',<thread>) ...attempt to compare...
|
||||
====== > ======
|
||||
--- checkallpass
|
||||
- gtop(1.25,1.25) false
|
||||
--- checkallpass
|
||||
- gtop('abc','abc') false
|
||||
- gtop('789','abc') false
|
||||
- gtop('abc','789') true
|
||||
- gtop('789','789') false
|
||||
--- checkallerrors
|
||||
- gtop(nil,1.25) ...attempt to compare...
|
||||
- gtop('abc',1.25) ...attempt to compare...
|
||||
- gtop(true,1.25) ...attempt to compare...
|
||||
- gtop(<table>,1.25) ...attempt to compare...
|
||||
- gtop(<function>,1.25) ...attempt to compare...
|
||||
- gtop(<thread>,1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- gtop('789',1.25) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- gtop(nil,'abc') ...attempt to compare...
|
||||
- gtop(true,'abc') ...attempt to compare...
|
||||
- gtop(<table>,'abc') ...attempt to compare...
|
||||
- gtop(<function>,'abc') ...attempt to compare...
|
||||
- gtop(<thread>,'abc') ...attempt to compare...
|
||||
- gtop(nil,'789') ...attempt to compare...
|
||||
- gtop(true,'789') ...attempt to compare...
|
||||
- gtop(<table>,'789') ...attempt to compare...
|
||||
- gtop(<function>,'789') ...attempt to compare...
|
||||
- gtop(<thread>,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- gtop(1.25,nil) ...attempt to compare...
|
||||
- gtop(1.25,'abc') ...attempt to compare...
|
||||
- gtop(1.25,true) ...attempt to compare...
|
||||
- gtop(1.25,<table>) ...attempt to compare...
|
||||
- gtop(1.25,<function>) ...attempt to compare...
|
||||
- gtop(1.25,<thread>) ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- gtop(1.25,'789') ...attempt to compare...
|
||||
--- checkallerrors
|
||||
- gtop('abc',nil) ...attempt to compare...
|
||||
- gtop('789',nil) ...attempt to compare...
|
||||
- gtop('abc',true) ...attempt to compare...
|
||||
- gtop('789',true) ...attempt to compare...
|
||||
- gtop('abc',<table>) ...attempt to compare...
|
||||
- gtop('789',<table>) ...attempt to compare...
|
||||
- gtop('abc',<function>) ...attempt to compare...
|
||||
- gtop('789',<function>) ...attempt to compare...
|
||||
- gtop('abc',<thread>) ...attempt to compare...
|
||||
- gtop('789',<thread>) ...attempt to compare...
|
||||
====== [] ======
|
||||
--- checkallpass
|
||||
- bracketop(<table>,'abc')
|
||||
- bracketop(<table>,1.25)
|
||||
- bracketop(<table>,true)
|
||||
- bracketop(<table>,<table>)
|
||||
- bracketop(<table>,<function>)
|
||||
- bracketop(<table>,<thread>)
|
||||
--- checkallerrors
|
||||
- bracketop(nil,'abc') ...attempt to index...
|
||||
needcheck bracketop('abc','abc') nil
|
||||
- bracketop(1.25,'abc') ...attempt to index...
|
||||
- bracketop(true,'abc') ...attempt to index...
|
||||
- bracketop(<function>,'abc') ...attempt to index...
|
||||
- bracketop(<thread>,'abc') ...attempt to index...
|
||||
- bracketop(nil,1.25) ...attempt to index...
|
||||
needcheck bracketop('abc',1.25) nil
|
||||
- bracketop(1.25,1.25) ...attempt to index...
|
||||
- bracketop(true,1.25) ...attempt to index...
|
||||
- bracketop(<function>,1.25) ...attempt to index...
|
||||
- bracketop(<thread>,1.25) ...attempt to index...
|
||||
- bracketop(nil,true) ...attempt to index...
|
||||
needcheck bracketop('abc',true) nil
|
||||
- bracketop(1.25,true) ...attempt to index...
|
||||
- bracketop(true,true) ...attempt to index...
|
||||
- bracketop(<function>,true) ...attempt to index...
|
||||
- bracketop(<thread>,true) ...attempt to index...
|
||||
- bracketop(nil,<table>) ...attempt to index...
|
||||
needcheck bracketop('abc',<table>) nil
|
||||
- bracketop(1.25,<table>) ...attempt to index...
|
||||
- bracketop(true,<table>) ...attempt to index...
|
||||
- bracketop(<function>,<table>) ...attempt to index...
|
||||
- bracketop(<thread>,<table>) ...attempt to index...
|
||||
- bracketop(nil,<function>) ...attempt to index...
|
||||
needcheck bracketop('abc',<function>) nil
|
||||
- bracketop(1.25,<function>) ...attempt to index...
|
||||
- bracketop(true,<function>) ...attempt to index...
|
||||
- bracketop(<function>,<function>) ...attempt to index...
|
||||
- bracketop(<thread>,<function>) ...attempt to index...
|
||||
- bracketop(nil,<thread>) ...attempt to index...
|
||||
needcheck bracketop('abc',<thread>) nil
|
||||
- bracketop(1.25,<thread>) ...attempt to index...
|
||||
- bracketop(true,<thread>) ...attempt to index...
|
||||
- bracketop(<function>,<thread>) ...attempt to index...
|
||||
- bracketop(<thread>,<thread>) ...attempt to index...
|
||||
--- checkallerrors
|
||||
needcheck bracketop(<table>) nil
|
||||
====== . ======
|
||||
--- checkallpass
|
||||
- dotop(<table>,'abc')
|
||||
- dotop(<table>,1.25)
|
||||
- dotop(<table>,true)
|
||||
- dotop(<table>,<table>)
|
||||
- dotop(<table>,<function>)
|
||||
- dotop(<table>,<thread>)
|
||||
--- checkallerrors
|
||||
- dotop(nil,'abc') ...attempt to index...
|
||||
needcheck dotop('abc','abc') nil
|
||||
- dotop(1.25,'abc') ...attempt to index...
|
||||
- dotop(true,'abc') ...attempt to index...
|
||||
- dotop(<function>,'abc') ...attempt to index...
|
||||
- dotop(<thread>,'abc') ...attempt to index...
|
||||
- dotop(nil,1.25) ...attempt to index...
|
||||
needcheck dotop('abc',1.25) nil
|
||||
- dotop(1.25,1.25) ...attempt to index...
|
||||
- dotop(true,1.25) ...attempt to index...
|
||||
- dotop(<function>,1.25) ...attempt to index...
|
||||
- dotop(<thread>,1.25) ...attempt to index...
|
||||
- dotop(nil,true) ...attempt to index...
|
||||
needcheck dotop('abc',true) nil
|
||||
- dotop(1.25,true) ...attempt to index...
|
||||
- dotop(true,true) ...attempt to index...
|
||||
- dotop(<function>,true) ...attempt to index...
|
||||
- dotop(<thread>,true) ...attempt to index...
|
||||
- dotop(nil,<table>) ...attempt to index...
|
||||
needcheck dotop('abc',<table>) nil
|
||||
- dotop(1.25,<table>) ...attempt to index...
|
||||
- dotop(true,<table>) ...attempt to index...
|
||||
- dotop(<function>,<table>) ...attempt to index...
|
||||
- dotop(<thread>,<table>) ...attempt to index...
|
||||
- dotop(nil,<function>) ...attempt to index...
|
||||
needcheck dotop('abc',<function>) nil
|
||||
- dotop(1.25,<function>) ...attempt to index...
|
||||
- dotop(true,<function>) ...attempt to index...
|
||||
- dotop(<function>,<function>) ...attempt to index...
|
||||
- dotop(<thread>,<function>) ...attempt to index...
|
||||
- dotop(nil,<thread>) ...attempt to index...
|
||||
needcheck dotop('abc',<thread>) nil
|
||||
- dotop(1.25,<thread>) ...attempt to index...
|
||||
- dotop(true,<thread>) ...attempt to index...
|
||||
- dotop(<function>,<thread>) ...attempt to index...
|
||||
- dotop(<thread>,<thread>) ...attempt to index...
|
||||
--- checkallerrors
|
||||
needcheck dotop(<table>) nil
|
||||
====== and ======
|
||||
--- checkallpass
|
||||
- andop(nil,nil)
|
||||
- andop('abc',nil)
|
||||
- andop(1.25,nil)
|
||||
- andop(true,nil)
|
||||
- andop(<table>,nil)
|
||||
- andop(<function>,nil)
|
||||
- andop(<thread>,nil)
|
||||
- andop(nil,'abc')
|
||||
- andop('abc','abc') 'abc'
|
||||
- andop(1.25,'abc') 'abc'
|
||||
- andop(true,'abc') 'abc'
|
||||
- andop(<table>,'abc') 'abc'
|
||||
- andop(<function>,'abc') 'abc'
|
||||
- andop(<thread>,'abc') 'abc'
|
||||
- andop(nil,1.25)
|
||||
- andop('abc',1.25) 1.25
|
||||
- andop(1.25,1.25) 1.25
|
||||
- andop(true,1.25) 1.25
|
||||
- andop(<table>,1.25) 1.25
|
||||
- andop(<function>,1.25) 1.25
|
||||
- andop(<thread>,1.25) 1.25
|
||||
- andop(nil,true)
|
||||
- andop('abc',true) true
|
||||
- andop(1.25,true) true
|
||||
- andop(true,true) true
|
||||
- andop(<table>,true) true
|
||||
- andop(<function>,true) true
|
||||
- andop(<thread>,true) true
|
||||
- andop(nil,<table>)
|
||||
- andop('abc',<table>) 'table'
|
||||
- andop(1.25,<table>) 'table'
|
||||
- andop(true,<table>) 'table'
|
||||
- andop(<table>,<table>) 'table'
|
||||
- andop(<function>,<table>) 'table'
|
||||
- andop(<thread>,<table>) 'table'
|
||||
- andop(nil,<function>)
|
||||
- andop('abc',<function>) 'function'
|
||||
- andop(1.25,<function>) 'function'
|
||||
- andop(true,<function>) 'function'
|
||||
- andop(<table>,<function>) 'function'
|
||||
- andop(<function>,<function>) 'function'
|
||||
- andop(<thread>,<function>) 'function'
|
||||
- andop(nil,<thread>)
|
||||
- andop('abc',<thread>) 'thread'
|
||||
- andop(1.25,<thread>) 'thread'
|
||||
- andop(true,<thread>) 'thread'
|
||||
- andop(<table>,<thread>) 'thread'
|
||||
- andop(<function>,<thread>) 'thread'
|
||||
- andop(<thread>,<thread>) 'thread'
|
||||
====== or ======
|
||||
--- checkallpass
|
||||
- orop(nil,nil)
|
||||
- orop('abc',nil) 'abc'
|
||||
- orop(1.25,nil) 1.25
|
||||
- orop(true,nil) true
|
||||
- orop(<table>,nil) 'table'
|
||||
- orop(<function>,nil) 'function'
|
||||
- orop(<thread>,nil) 'thread'
|
||||
- orop(nil,'abc') 'abc'
|
||||
- orop('abc','abc') 'abc'
|
||||
- orop(1.25,'abc') 1.25
|
||||
- orop(true,'abc') true
|
||||
- orop(<table>,'abc') 'table'
|
||||
- orop(<function>,'abc') 'function'
|
||||
- orop(<thread>,'abc') 'thread'
|
||||
- orop(nil,1.25) 1.25
|
||||
- orop('abc',1.25) 'abc'
|
||||
- orop(1.25,1.25) 1.25
|
||||
- orop(true,1.25) true
|
||||
- orop(<table>,1.25) 'table'
|
||||
- orop(<function>,1.25) 'function'
|
||||
- orop(<thread>,1.25) 'thread'
|
||||
- orop(nil,true) true
|
||||
- orop('abc',true) 'abc'
|
||||
- orop(1.25,true) 1.25
|
||||
- orop(true,true) true
|
||||
- orop(<table>,true) 'table'
|
||||
- orop(<function>,true) 'function'
|
||||
- orop(<thread>,true) 'thread'
|
||||
- orop(nil,<table>) 'table'
|
||||
- orop('abc',<table>) 'abc'
|
||||
- orop(1.25,<table>) 1.25
|
||||
- orop(true,<table>) true
|
||||
- orop(<table>,<table>) 'table'
|
||||
- orop(<function>,<table>) 'function'
|
||||
- orop(<thread>,<table>) 'thread'
|
||||
- orop(nil,<function>) 'function'
|
||||
- orop('abc',<function>) 'abc'
|
||||
- orop(1.25,<function>) 1.25
|
||||
- orop(true,<function>) true
|
||||
- orop(<table>,<function>) 'table'
|
||||
- orop(<function>,<function>) 'function'
|
||||
- orop(<thread>,<function>) 'thread'
|
||||
- orop(nil,<thread>) 'thread'
|
||||
- orop('abc',<thread>) 'abc'
|
||||
- orop(1.25,<thread>) 1.25
|
||||
- orop(true,<thread>) true
|
||||
- orop(<table>,<thread>) 'table'
|
||||
- orop(<function>,<thread>) 'function'
|
||||
- orop(<thread>,<thread>) 'thread'
|
||||
====== for x=a,b,c ======
|
||||
--- checkallpass
|
||||
- forop(1,10,2)
|
||||
- forop('1.1',10,2)
|
||||
- forop(1,'10.1',2)
|
||||
- forop('1.1','10.1',2)
|
||||
- forop(1,10,'2.1')
|
||||
- forop('1.1',10,'2.1')
|
||||
- forop(1,'10.1','2.1')
|
||||
- forop('1.1','10.1','2.1')
|
||||
--- checkallerrors
|
||||
- forop(nil,10,2) ...'for' initial value must be a number...
|
||||
- forop('abc',10,2) ...'for' initial value must be a number...
|
||||
- forop(true,10,2) ...'for' initial value must be a number...
|
||||
- forop(<table>,10,2) ...'for' initial value must be a number...
|
||||
- forop(<function>,10,2) ...'for' initial value must be a number...
|
||||
- forop(<thread>,10,2) ...'for' initial value must be a number...
|
||||
- forop(nil,'10.1',2) ...'for' initial value must be a number...
|
||||
- forop('abc','10.1',2) ...'for' initial value must be a number...
|
||||
- forop(true,'10.1',2) ...'for' initial value must be a number...
|
||||
- forop(<table>,'10.1',2) ...'for' initial value must be a number...
|
||||
- forop(<function>,'10.1',2) ...'for' initial value must be a number...
|
||||
- forop(<thread>,'10.1',2) ...'for' initial value must be a number...
|
||||
- forop(nil,10,'2.1') ...'for' initial value must be a number...
|
||||
- forop('abc',10,'2.1') ...'for' initial value must be a number...
|
||||
- forop(true,10,'2.1') ...'for' initial value must be a number...
|
||||
- forop(<table>,10,'2.1') ...'for' initial value must be a number...
|
||||
- forop(<function>,10,'2.1') ...'for' initial value must be a number...
|
||||
- forop(<thread>,10,'2.1') ...'for' initial value must be a number...
|
||||
- forop(nil,'10.1','2.1') ...'for' initial value must be a number...
|
||||
- forop('abc','10.1','2.1') ...'for' initial value must be a number...
|
||||
- forop(true,'10.1','2.1') ...'for' initial value must be a number...
|
||||
- forop(<table>,'10.1','2.1') ...'for' initial value must be a number...
|
||||
- forop(<function>,'10.1','2.1') ...'for' initial value must be a number...
|
||||
- forop(<thread>,'10.1','2.1') ...'for' initial value must be a number...
|
||||
--- checkallerrors
|
||||
- forop(1,nil,2) ...'for' limit must be a number...
|
||||
- forop('1.1',nil,2) ...'for' limit must be a number...
|
||||
- forop(1,'abc',2) ...'for' limit must be a number...
|
||||
- forop('1.1','abc',2) ...'for' limit must be a number...
|
||||
- forop(1,true,2) ...'for' limit must be a number...
|
||||
- forop('1.1',true,2) ...'for' limit must be a number...
|
||||
- forop(1,<table>,2) ...'for' limit must be a number...
|
||||
- forop('1.1',<table>,2) ...'for' limit must be a number...
|
||||
- forop(1,<function>,2) ...'for' limit must be a number...
|
||||
- forop('1.1',<function>,2) ...'for' limit must be a number...
|
||||
- forop(1,<thread>,2) ...'for' limit must be a number...
|
||||
- forop('1.1',<thread>,2) ...'for' limit must be a number...
|
||||
- forop(1,nil,'2.1') ...'for' limit must be a number...
|
||||
- forop('1.1',nil,'2.1') ...'for' limit must be a number...
|
||||
- forop(1,'abc','2.1') ...'for' limit must be a number...
|
||||
- forop('1.1','abc','2.1') ...'for' limit must be a number...
|
||||
- forop(1,true,'2.1') ...'for' limit must be a number...
|
||||
- forop('1.1',true,'2.1') ...'for' limit must be a number...
|
||||
- forop(1,<table>,'2.1') ...'for' limit must be a number...
|
||||
- forop('1.1',<table>,'2.1') ...'for' limit must be a number...
|
||||
- forop(1,<function>,'2.1') ...'for' limit must be a number...
|
||||
- forop('1.1',<function>,'2.1') ...'for' limit must be a number...
|
||||
- forop(1,<thread>,'2.1') ...'for' limit must be a number...
|
||||
- forop('1.1',<thread>,'2.1') ...'for' limit must be a number...
|
||||
--- checkallerrors
|
||||
- forop(1,10,nil) ...'for' step must be a number...
|
||||
- forop('1.1',10,nil) ...'for' step must be a number...
|
||||
- forop(1,'10.1',nil) ...'for' step must be a number...
|
||||
- forop('1.1','10.1',nil) ...'for' step must be a number...
|
||||
- forop(1,10,'abc') ...'for' step must be a number...
|
||||
- forop('1.1',10,'abc') ...'for' step must be a number...
|
||||
- forop(1,'10.1','abc') ...'for' step must be a number...
|
||||
- forop('1.1','10.1','abc') ...'for' step must be a number...
|
||||
- forop(1,10,true) ...'for' step must be a number...
|
||||
- forop('1.1',10,true) ...'for' step must be a number...
|
||||
- forop(1,'10.1',true) ...'for' step must be a number...
|
||||
- forop('1.1','10.1',true) ...'for' step must be a number...
|
||||
- forop(1,10,<table>) ...'for' step must be a number...
|
||||
- forop('1.1',10,<table>) ...'for' step must be a number...
|
||||
- forop(1,'10.1',<table>) ...'for' step must be a number...
|
||||
- forop('1.1','10.1',<table>) ...'for' step must be a number...
|
||||
- forop(1,10,<function>) ...'for' step must be a number...
|
||||
- forop('1.1',10,<function>) ...'for' step must be a number...
|
||||
- forop(1,'10.1',<function>) ...'for' step must be a number...
|
||||
- forop('1.1','10.1',<function>) ...'for' step must be a number...
|
||||
- forop(1,10,<thread>) ...'for' step must be a number...
|
||||
- forop('1.1',10,<thread>) ...'for' step must be a number...
|
||||
- forop(1,'10.1',<thread>) ...'for' step must be a number...
|
||||
- forop('1.1','10.1',<thread>) ...'for' step must be a number...
|
||||
BIN
luaj-test/src/test/resources/errors/stringlibargs.out
Normal file
BIN
luaj-test/src/test/resources/errors/stringlibargs.out
Normal file
Binary file not shown.
283
luaj-test/src/test/resources/errors/tablelibargs.out
Normal file
283
luaj-test/src/test/resources/errors/tablelibargs.out
Normal file
@@ -0,0 +1,283 @@
|
||||
====== table.concat ======
|
||||
--- checkallpass
|
||||
- table.concat(<table>) '87654321'
|
||||
--- checkallpass
|
||||
- table.concat(<table>,',') '8,7,6,5,4,3,2,1'
|
||||
- table.concat(<table>,1.23) '81.2371.2361.2351.2341.2331.2321.231'
|
||||
--- checkallpass
|
||||
- table.concat(<table>,'-',2) '7-6-5-4-3-2-1'
|
||||
- table.concat(<table>,'-','2') '7-6-5-4-3-2-1'
|
||||
- table.concat(<table>,'-','2.2') '7-6-5-4-3-2-1'
|
||||
--- checkallpass
|
||||
- table.concat(<table>,'-',2,4) '7-6-5'
|
||||
- table.concat(<table>,'-',2,'4') '7-6-5'
|
||||
- table.concat(<table>,'-',2,'4.4') '7-6-5'
|
||||
--- checkallerrors
|
||||
- table.concat(nil) ...bad argument...
|
||||
- table.concat('abc') ...bad argument...
|
||||
- table.concat(1.25) ...bad argument...
|
||||
- table.concat(true) ...bad argument...
|
||||
- table.concat(<function>) ...bad argument...
|
||||
- table.concat(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.concat(<table>) ...boolean...
|
||||
--- checkallerrors
|
||||
- table.concat(<table>,true) ...bad argument...
|
||||
- table.concat(<table>,<table>) ...bad argument...
|
||||
- table.concat(<table>,<function>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.concat(<table>,'-','abc') ...bad argument...
|
||||
- table.concat(<table>,'-',true) ...bad argument...
|
||||
- table.concat(<table>,'-',<table>) ...bad argument...
|
||||
- table.concat(<table>,'-',<function>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.concat(<table>,'-',2,'abc') ...bad argument...
|
||||
- table.concat(<table>,'-',2,true) ...bad argument...
|
||||
- table.concat(<table>,'-',2,<table>) ...bad argument...
|
||||
- table.concat(<table>,'-',2,<function>) ...bad argument...
|
||||
====== table.insert ======
|
||||
--- checkallpass
|
||||
- table.insert(<table>,'abc')
|
||||
- table.insert(<table>,1.25)
|
||||
- table.insert(<table>,true)
|
||||
- table.insert(<table>,<table>)
|
||||
- table.insert(<table>,<function>)
|
||||
- table.insert(<table>,<thread>)
|
||||
--- checkallpass
|
||||
- table.insert(<table>,2,'abc')
|
||||
- table.insert(<table>,'2','abc')
|
||||
- table.insert(<table>,'2.2','abc')
|
||||
- table.insert(<table>,2,1.25)
|
||||
- table.insert(<table>,'2',1.25)
|
||||
- table.insert(<table>,'2.2',1.25)
|
||||
- table.insert(<table>,2,true)
|
||||
- table.insert(<table>,'2',true)
|
||||
- table.insert(<table>,'2.2',true)
|
||||
- table.insert(<table>,2,<table>)
|
||||
- table.insert(<table>,'2',<table>)
|
||||
- table.insert(<table>,'2.2',<table>)
|
||||
- table.insert(<table>,2,<function>)
|
||||
- table.insert(<table>,'2',<function>)
|
||||
- table.insert(<table>,'2.2',<function>)
|
||||
- table.insert(<table>,2,<thread>)
|
||||
- table.insert(<table>,'2',<thread>)
|
||||
- table.insert(<table>,'2.2',<thread>)
|
||||
--- checkallerrors
|
||||
- table.insert(nil,'abc') ...bad argument...
|
||||
- table.insert('abc','abc') ...bad argument...
|
||||
- table.insert(1.25,'abc') ...bad argument...
|
||||
- table.insert(true,'abc') ...bad argument...
|
||||
- table.insert(<function>,'abc') ...bad argument...
|
||||
- table.insert(<thread>,'abc') ...bad argument...
|
||||
- table.insert(nil,1.25) ...bad argument...
|
||||
- table.insert('abc',1.25) ...bad argument...
|
||||
- table.insert(1.25,1.25) ...bad argument...
|
||||
- table.insert(true,1.25) ...bad argument...
|
||||
- table.insert(<function>,1.25) ...bad argument...
|
||||
- table.insert(<thread>,1.25) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.insert(<table>,'abc','abc') ...bad argument...
|
||||
- table.insert(<table>,true,'abc') ...bad argument...
|
||||
- table.insert(<table>,<table>,'abc') ...bad argument...
|
||||
- table.insert(<table>,<function>,'abc') ...bad argument...
|
||||
- table.insert(<table>,'abc',1.25) ...bad argument...
|
||||
- table.insert(<table>,true,1.25) ...bad argument...
|
||||
- table.insert(<table>,<table>,1.25) ...bad argument...
|
||||
- table.insert(<table>,<function>,1.25) ...bad argument...
|
||||
- table.insert(<table>,'abc',true) ...bad argument...
|
||||
- table.insert(<table>,true,true) ...bad argument...
|
||||
- table.insert(<table>,<table>,true) ...bad argument...
|
||||
- table.insert(<table>,<function>,true) ...bad argument...
|
||||
- table.insert(<table>,'abc',<table>) ...bad argument...
|
||||
- table.insert(<table>,true,<table>) ...bad argument...
|
||||
- table.insert(<table>,<table>,<table>) ...bad argument...
|
||||
- table.insert(<table>,<function>,<table>) ...bad argument...
|
||||
- table.insert(<table>,'abc',<function>) ...bad argument...
|
||||
- table.insert(<table>,true,<function>) ...bad argument...
|
||||
- table.insert(<table>,<table>,<function>) ...bad argument...
|
||||
- table.insert(<table>,<function>,<function>) ...bad argument...
|
||||
- table.insert(<table>,'abc',<thread>) ...bad argument...
|
||||
- table.insert(<table>,true,<thread>) ...bad argument...
|
||||
- table.insert(<table>,<table>,<thread>) ...bad argument...
|
||||
- table.insert(<table>,<function>,<thread>) ...bad argument...
|
||||
====== table.remove ======
|
||||
--- checkallpass
|
||||
- table.remove(<table>) <thread>
|
||||
--- checkallpass
|
||||
- table.remove(<table>,2) <thread>
|
||||
- table.remove(<table>,'2') <thread>
|
||||
- table.remove(<table>,'2.2') <thread>
|
||||
--- checkallerrors
|
||||
- table.remove(nil) ...bad argument...
|
||||
- table.remove('abc') ...bad argument...
|
||||
- table.remove(1.25) ...bad argument...
|
||||
- table.remove(true) ...bad argument...
|
||||
- table.remove(<function>) ...bad argument...
|
||||
- table.remove(<thread>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.remove(nil,2) ...bad argument...
|
||||
- table.remove('abc',2) ...bad argument...
|
||||
- table.remove(1.25,2) ...bad argument...
|
||||
- table.remove(true,2) ...bad argument...
|
||||
- table.remove(<function>,2) ...bad argument...
|
||||
- table.remove(<thread>,2) ...bad argument...
|
||||
- table.remove(nil,'2') ...bad argument...
|
||||
- table.remove('abc','2') ...bad argument...
|
||||
- table.remove(1.25,'2') ...bad argument...
|
||||
- table.remove(true,'2') ...bad argument...
|
||||
- table.remove(<function>,'2') ...bad argument...
|
||||
- table.remove(<thread>,'2') ...bad argument...
|
||||
- table.remove(nil,'2.2') ...bad argument...
|
||||
- table.remove('abc','2.2') ...bad argument...
|
||||
- table.remove(1.25,'2.2') ...bad argument...
|
||||
- table.remove(true,'2.2') ...bad argument...
|
||||
- table.remove(<function>,'2.2') ...bad argument...
|
||||
- table.remove(<thread>,'2.2') ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.remove(<table>,'abc') ...bad argument...
|
||||
- table.remove(<table>,true) ...bad argument...
|
||||
- table.remove(<table>,<table>) ...bad argument...
|
||||
- table.remove(<table>,<function>) ...bad argument...
|
||||
====== table.sort ======
|
||||
--- checkallpass
|
||||
- table.sort(<table>,nil)
|
||||
- table.sort(<table>,<function>)
|
||||
--- checkallerrors
|
||||
- table.sort(<table>) ...attempt to...
|
||||
--- checkallerrors
|
||||
- table.sort(nil,nil) ...bad argument...
|
||||
- table.sort('abc',nil) ...bad argument...
|
||||
- table.sort(1.25,nil) ...bad argument...
|
||||
- table.sort(true,nil) ...bad argument...
|
||||
- table.sort(<function>,nil) ...bad argument...
|
||||
- table.sort(<thread>,nil) ...bad argument...
|
||||
- table.sort(nil,<function>) ...bad argument...
|
||||
- table.sort('abc',<function>) ...bad argument...
|
||||
- table.sort(1.25,<function>) ...bad argument...
|
||||
- table.sort(true,<function>) ...bad argument...
|
||||
- table.sort(<function>,<function>) ...bad argument...
|
||||
- table.sort(<thread>,<function>) ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.sort(<table>,'abc') ...bad argument...
|
||||
- table.sort(<table>,1.25) ...bad argument...
|
||||
- table.sort(<table>,true) ...bad argument...
|
||||
- table.sort(<table>,<table>) ...bad argument...
|
||||
====== table_get - tbl[key] ======
|
||||
--- checkallpass
|
||||
- table_get(<table>,nil)
|
||||
- table_get(<table>,'abc')
|
||||
- table_get(<table>,1.25)
|
||||
- table_get(<table>,true)
|
||||
- table_get(<table>,<table>)
|
||||
- table_get(<table>,<function>)
|
||||
- table_get(<table>,<thread>)
|
||||
====== table_set - tbl[key]=val ======
|
||||
--- checkallpass
|
||||
- table_set(<table>,'abc',nil)
|
||||
- table_set(<table>,1.25,nil)
|
||||
- table_set(<table>,true,nil)
|
||||
- table_set(<table>,<table>,nil)
|
||||
- table_set(<table>,<function>,nil)
|
||||
- table_set(<table>,<thread>,nil)
|
||||
- table_set(<table>,'abc','abc')
|
||||
- table_set(<table>,1.25,'abc')
|
||||
- table_set(<table>,true,'abc')
|
||||
- table_set(<table>,<table>,'abc')
|
||||
- table_set(<table>,<function>,'abc')
|
||||
- table_set(<table>,<thread>,'abc')
|
||||
- table_set(<table>,'abc',1.25)
|
||||
- table_set(<table>,1.25,1.25)
|
||||
- table_set(<table>,true,1.25)
|
||||
- table_set(<table>,<table>,1.25)
|
||||
- table_set(<table>,<function>,1.25)
|
||||
- table_set(<table>,<thread>,1.25)
|
||||
- table_set(<table>,'abc',true)
|
||||
- table_set(<table>,1.25,true)
|
||||
- table_set(<table>,true,true)
|
||||
- table_set(<table>,<table>,true)
|
||||
- table_set(<table>,<function>,true)
|
||||
- table_set(<table>,<thread>,true)
|
||||
- table_set(<table>,'abc',<table>)
|
||||
- table_set(<table>,1.25,<table>)
|
||||
- table_set(<table>,true,<table>)
|
||||
- table_set(<table>,<table>,<table>)
|
||||
- table_set(<table>,<function>,<table>)
|
||||
- table_set(<table>,<thread>,<table>)
|
||||
- table_set(<table>,'abc',<function>)
|
||||
- table_set(<table>,1.25,<function>)
|
||||
- table_set(<table>,true,<function>)
|
||||
- table_set(<table>,<table>,<function>)
|
||||
- table_set(<table>,<function>,<function>)
|
||||
- table_set(<table>,<thread>,<function>)
|
||||
- table_set(<table>,'abc',<thread>)
|
||||
- table_set(<table>,1.25,<thread>)
|
||||
- table_set(<table>,true,<thread>)
|
||||
- table_set(<table>,<table>,<thread>)
|
||||
- table_set(<table>,<function>,<thread>)
|
||||
- table_set(<table>,<thread>,<thread>)
|
||||
--- checkallerrors
|
||||
- table_set_nil_key(<table>,nil) ...table index...
|
||||
- table_set_nil_key(<table>,'abc') ...table index...
|
||||
- table_set_nil_key(<table>,1.25) ...table index...
|
||||
- table_set_nil_key(<table>,true) ...table index...
|
||||
- table_set_nil_key(<table>,<table>) ...table index...
|
||||
- table_set_nil_key(<table>,<function>) ...table index...
|
||||
- table_set_nil_key(<table>,<thread>) ...table index...
|
||||
====== table.unpack ======
|
||||
--- checkallpass
|
||||
- table.unpack(<table>) 'abc',<function>,<function>,<function>,<table>,<table>,<table>,true,true,true,1.25,1.25,1.25,'abc','abc','abc',1.25,true,<table>,<function>
|
||||
--- checkallpass
|
||||
- table.unpack(<table>,3) <function>,<function>,<table>,<table>,<table>,true,true,true,1.25,1.25,1.25,'abc','abc','abc',1.25,true,<table>,<function>
|
||||
- table.unpack(<table>,'5') <table>,<table>,<table>,true,true,true,1.25,1.25,1.25,'abc','abc','abc',1.25,true,<table>,<function>
|
||||
--- checkallpass
|
||||
- table.unpack(<table>,3,1.25)
|
||||
- table.unpack(<table>,'5',1.25)
|
||||
- table.unpack(<table>,3,'7') <function>,<function>,<table>,<table>,<table>
|
||||
- table.unpack(<table>,'5','7') <table>,<table>,<table>
|
||||
--- checkallerrors
|
||||
- table.unpack(nil,1.25,1.25) ...bad argument...
|
||||
- table.unpack('abc',1.25,1.25) ...bad argument...
|
||||
- table.unpack(1.25,1.25,1.25) ...bad argument...
|
||||
- table.unpack(true,1.25,1.25) ...bad argument...
|
||||
- table.unpack(<function>,1.25,1.25) ...bad argument...
|
||||
- table.unpack(<thread>,1.25,1.25) ...bad argument...
|
||||
- table.unpack(nil,'789',1.25) ...bad argument...
|
||||
- table.unpack('abc','789',1.25) ...bad argument...
|
||||
- table.unpack(1.25,'789',1.25) ...bad argument...
|
||||
- table.unpack(true,'789',1.25) ...bad argument...
|
||||
- table.unpack(<function>,'789',1.25) ...bad argument...
|
||||
- table.unpack(<thread>,'789',1.25) ...bad argument...
|
||||
- table.unpack(nil,1.25,'789') ...bad argument...
|
||||
- table.unpack('abc',1.25,'789') ...bad argument...
|
||||
- table.unpack(1.25,1.25,'789') ...bad argument...
|
||||
- table.unpack(true,1.25,'789') ...bad argument...
|
||||
- table.unpack(<function>,1.25,'789') ...bad argument...
|
||||
- table.unpack(<thread>,1.25,'789') ...bad argument...
|
||||
- table.unpack(nil,'789','789') ...bad argument...
|
||||
- table.unpack('abc','789','789') ...bad argument...
|
||||
- table.unpack(1.25,'789','789') ...bad argument...
|
||||
- table.unpack(true,'789','789') ...bad argument...
|
||||
- table.unpack(<function>,'789','789') ...bad argument...
|
||||
- table.unpack(<thread>,'789','789') ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.unpack(<table>,'abc',1.25) ...bad argument...
|
||||
- table.unpack(<table>,true,1.25) ...bad argument...
|
||||
- table.unpack(<table>,<table>,1.25) ...bad argument...
|
||||
- table.unpack(<table>,<function>,1.25) ...bad argument...
|
||||
- table.unpack(<table>,<thread>,1.25) ...bad argument...
|
||||
- table.unpack(<table>,'abc','789') ...bad argument...
|
||||
- table.unpack(<table>,true,'789') ...bad argument...
|
||||
- table.unpack(<table>,<table>,'789') ...bad argument...
|
||||
- table.unpack(<table>,<function>,'789') ...bad argument...
|
||||
- table.unpack(<table>,<thread>,'789') ...bad argument...
|
||||
--- checkallerrors
|
||||
- table.unpack(<table>,1.25,'abc') ...bad argument...
|
||||
- table.unpack(<table>,'789','abc') ...bad argument...
|
||||
- table.unpack(<table>,1.25,true) ...bad argument...
|
||||
- table.unpack(<table>,'789',true) ...bad argument...
|
||||
- table.unpack(<table>,1.25,<table>) ...bad argument...
|
||||
- table.unpack(<table>,'789',<table>) ...bad argument...
|
||||
- table.unpack(<table>,1.25,<function>) ...bad argument...
|
||||
- table.unpack(<table>,'789',<function>) ...bad argument...
|
||||
- table.unpack(<table>,1.25,<thread>) ...bad argument...
|
||||
- table.unpack(<table>,'789',<thread>) ...bad argument...
|
||||
Reference in New Issue
Block a user