From b8985adca9a7ef6b247795e45c5408ed2f005baf Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 19 Jan 2017 02:51:25 +0100 Subject: [PATCH] Remove duplicate test and reorder things a bit. There was a duplicate(ish) test, which tested float("nan") instead of NaN or Indet. On Windows it was not duplicate, because under Windows, float("nan") produces Indet, which was not tested. Change it to Indet so we know what we're testing. --- testfuncs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testfuncs.py b/testfuncs.py index 87951c5..6a4a680 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -1137,6 +1137,9 @@ def do_tests(): test('llListFindList([],[])', -1) test('llListFindList([3],[])', 0) lslcommon.LSO = False + test('llListFindList([],[])', 0) + test('llListFindList([3],[])', 0) + test('llListFindList([3],[3,4,5])', -1) test('llListFindList([NaN], [NaN])', 0) # I swear. test('llListFindList([NaN, Indet], [Indet, NaN])', 0) # Indeed. test('llListFindList([-0.], [0.])', 0) # Really. @@ -1146,10 +1149,7 @@ def do_tests(): test('llListFindList([Vector((NaN,0.,0.))], [Vector((NaN,0.,0.))])', -1) # Yes, really test('llListFindList([Vector((0.,0.,0.))], [Vector((0.,0.,0.))])', 0) test('llListFindList([Quaternion((0.,0.,0.,NaN))], [Quaternion((0.,0.,0.,NaN))])', -1) # Python == fails here - test('llListFindList([Quaternion((0.,0.,0.,float("nan")))], [Quaternion((0.,0.,0.,float("nan")))])', -1) - test('llListFindList([],[])', 0) - test('llListFindList([3],[])', 0) - test('llListFindList([3],[3,4,5])', -1) + test('llListFindList([Quaternion((0.,0.,0.,Indet))], [Quaternion((0.,0.,0.,Indet))])', -1) test('''llListFindList([Key(u"12345678-ABCD-5678-1234-123456781234")], [Key(u"12345678-abcd-5678-1234-123456781234")])''', -1) test('''llListFindList([Key(u"12345678-abcd-5678-1234-123456781234")],