mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
A bit of reordering, to put some similar tests together.
This commit is contained in:
parent
551a6ece12
commit
b0f8b7036b
2 changed files with 5 additions and 4 deletions
|
@ -1090,7 +1090,7 @@ def llFrand(lim):
|
||||||
if val == lim:
|
if val == lim:
|
||||||
# this should never happen
|
# this should never happen
|
||||||
# (it can happen on denormals, but these cause output of 0.0)
|
# (it can happen on denormals, but these cause output of 0.0)
|
||||||
val = 0.
|
val = 0. # pragma: no cover
|
||||||
return val
|
return val
|
||||||
|
|
||||||
# Can't give a concrete value
|
# Can't give a concrete value
|
||||||
|
|
|
@ -1157,8 +1157,6 @@ def do_tests():
|
||||||
test('''llListFindList([u"12345678-abcd-5678-1234-123456781234",
|
test('''llListFindList([u"12345678-abcd-5678-1234-123456781234",
|
||||||
Key(u"12345678-abcd-5678-1234-123456781234")],
|
Key(u"12345678-abcd-5678-1234-123456781234")],
|
||||||
[Key(u"12345678-abcd-5678-1234-123456781234")])''', 1)
|
[Key(u"12345678-abcd-5678-1234-123456781234")])''', 1)
|
||||||
test('llListInsertList([1,2,3],[4,5],-1)', [1,2,4,5,3])
|
|
||||||
test('llListInsertList([1,2,3],[4,5],-5)', [4,5,1,2,3])
|
|
||||||
|
|
||||||
test('llIntegerToBase64(-680658713)', u'12345w==')
|
test('llIntegerToBase64(-680658713)', u'12345w==')
|
||||||
test('llIntegerToBase64(-1)', u'/////w==')
|
test('llIntegerToBase64(-1)', u'/////w==')
|
||||||
|
@ -1464,12 +1462,15 @@ def do_tests():
|
||||||
test('llListReplaceList([0,1,2,3,4,5],[6,7,8],7,6)', [6,7,8])
|
test('llListReplaceList([0,1,2,3,4,5],[6,7,8],7,6)', [6,7,8])
|
||||||
test('llListReplaceList([0,1,2,3,4,5],[6,7,8],7,8)', [0,1,2,3,4,5,6,7,8])
|
test('llListReplaceList([0,1,2,3,4,5],[6,7,8],7,8)', [0,1,2,3,4,5,6,7,8])
|
||||||
|
|
||||||
test('llMD5String(u"", 0)', u'1a9d5db22c73a993ff0b42f64b396873')
|
|
||||||
test('llListInsertList([], [1], 0)', [1])
|
test('llListInsertList([], [1], 0)', [1])
|
||||||
test('llListInsertList([], [1], 3)', [1])
|
test('llListInsertList([], [1], 3)', [1])
|
||||||
test('llListInsertList([], [1], -1)', [1])
|
test('llListInsertList([], [1], -1)', [1])
|
||||||
|
test('llListInsertList([1,2,3],[4,5],-1)', [1,2,4,5,3])
|
||||||
|
test('llListInsertList([1,2,3],[4,5],-5)', [4,5,1,2,3])
|
||||||
test('llListInsertList([1,2,3,4,5],[9],-3)', [1,2,9,3,4,5])
|
test('llListInsertList([1,2,3,4,5],[9],-3)', [1,2,9,3,4,5])
|
||||||
|
|
||||||
|
test('llMD5String(u"", 0)', u'1a9d5db22c73a993ff0b42f64b396873')
|
||||||
|
|
||||||
test('llGetEnv(u"")', u'')
|
test('llGetEnv(u"")', u'')
|
||||||
test('llGetEnv(u"yadda")', u'')
|
test('llGetEnv(u"yadda")', u'')
|
||||||
shouldexcept('llGetEnv(u"agent_limit")', ELSLCantCompute)
|
shouldexcept('llGetEnv(u"agent_limit")', ELSLCantCompute)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue