mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
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.
This commit is contained in:
parent
7f8cb4ec58
commit
b8985adca9
1 changed files with 4 additions and 4 deletions
|
@ -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")],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue