838 lines
34 KiB
Plaintext
838 lines
34 KiB
Plaintext
====== 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...
|