Remove duplicate test, add test for LSO llListFindList

The test for two empty lists passed to llListFindList was duplicated. That case generates -1 under LSO, and that wasn't tested, so we add that as a test now. Check also that another corner case behaves properly under LSO.
This commit is contained in:
Sei Lisa 2017-01-07 23:33:50 +01:00
parent 19dec1d79e
commit b623d6ae5c

View file

@ -1140,7 +1140,10 @@ def do_tests():
test('llModPow(41, 1, 17)', 7) test('llModPow(41, 1, 17)', 7)
lslcommon.IsCalc = False lslcommon.IsCalc = False
test('llListFindList([], [])', 0) lslcommon.LSO = True
test('llListFindList([],[])', -1)
test('llListFindList([3],[])', 0)
lslcommon.LSO = False
test('llListFindList([NaN], [NaN])', 0) # I swear. test('llListFindList([NaN], [NaN])', 0) # I swear.
test('llListFindList([NaN, Indet], [Indet, NaN])', 0) # Indeed. test('llListFindList([NaN, Indet], [Indet, NaN])', 0) # Indeed.
test('llListFindList([-0.], [0.])', 0) # Really. test('llListFindList([-0.], [0.])', 0) # Really.