From b0f8b7036baf9ad1407438b76d07019735596194 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 20 Jan 2017 01:40:19 +0100 Subject: [PATCH] A bit of reordering, to put some similar tests together. --- lslopt/lslbasefuncs.py | 2 +- testfuncs.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lslopt/lslbasefuncs.py b/lslopt/lslbasefuncs.py index 6c39dc9..f419e1e 100644 --- a/lslopt/lslbasefuncs.py +++ b/lslopt/lslbasefuncs.py @@ -1090,7 +1090,7 @@ def llFrand(lim): if val == lim: # this should never happen # (it can happen on denormals, but these cause output of 0.0) - val = 0. + val = 0. # pragma: no cover return val # Can't give a concrete value diff --git a/testfuncs.py b/testfuncs.py index 3e1d240..aca0aad 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -1157,8 +1157,6 @@ def do_tests(): test('''llListFindList([u"12345678-abcd-5678-1234-123456781234", Key(u"12345678-abcd-5678-1234-123456781234")], [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(-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,8)', [0,1,2,3,4,5,6,7,8]) - test('llMD5String(u"", 0)', u'1a9d5db22c73a993ff0b42f64b396873') test('llListInsertList([], [1], 0)', [1]) test('llListInsertList([], [1], 3)', [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('llMD5String(u"", 0)', u'1a9d5db22c73a993ff0b42f64b396873') + test('llGetEnv(u"")', u'') test('llGetEnv(u"yadda")', u'') shouldexcept('llGetEnv(u"agent_limit")', ELSLCantCompute)