mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Managed to deal with the '-nan' case in llList2CSV. Add test cases.
This commit is contained in:
parent
0122d6ed70
commit
bc4f574b33
2 changed files with 19 additions and 8 deletions
|
@ -828,6 +828,14 @@ def do_tests():
|
|||
test('llTan(F32(math.pi*.5))', -22877330.)
|
||||
test('llTan(F("0x1.921FB4p0"))', 13245400.)
|
||||
|
||||
# nan and -nan in llList2CSV
|
||||
test('llList2CSV([llSin(F32(4e38))])', u'-nan')
|
||||
test('llList2CSV([llCos(F32(4e38))])', u'-nan')
|
||||
test('llList2CSV([llTan(F32(4e38))])', u'-nan')
|
||||
test('llList2CSV([llSqrt(F32(-1))])', u'-nan')
|
||||
test('llList2CSV([llPow(-1.0,F32(1.3))])', u'-nan')
|
||||
test('llList2CSV([llPow(nan,F32(1.3))])', u'nan')
|
||||
|
||||
testXB64S("", "", "")
|
||||
testXB64S(u"Hello, World!", u"", u"Hello, World!")
|
||||
testXB64S("AAAAA==AAAAA=", "_X", "/X/X/==X/X/X=")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue