From b623d6ae5c80fb72dfb4071e3b5d8a5f04e59d13 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 7 Jan 2017 23:33:50 +0100 Subject: [PATCH] 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. --- testfuncs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testfuncs.py b/testfuncs.py index faa126c..945ab8f 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -1140,7 +1140,10 @@ def do_tests(): test('llModPow(41, 1, 17)', 7) 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, Indet], [Indet, NaN])', 0) # Indeed. test('llListFindList([-0.], [0.])', 0) # Really.