Run llFrand test just once.
It doesn't make sense to check the output multiple times. It would if lslcommon.IsCalc were set to True, because then it wouldn't be distinguishable from a randomly obtained value. But in non-calc mode, it would raise ELSLCantCompute if it were unpredictable, so it's OK to check just once because if it doesn't raise, it's predictable and can be checked.
This commit is contained in:
@@ -930,9 +930,8 @@ def do_tests():
|
||||
test('llFrand(-Infinity)', 0.0)
|
||||
test('llFrand(-NaN)', -NaN)
|
||||
test('llFrand(NaN)', NaN)
|
||||
for i in range(10):
|
||||
test('llFrand(F32(1.4e-45))', 0.0)
|
||||
test('llFrand(F32(1.1754942106924411e-38))', 0.0)
|
||||
test('llFrand(F32(1.4e-45))', 0.0)
|
||||
test('llFrand(F32(1.1754942106924411e-38))', 0.0)
|
||||
|
||||
test('llRot2Fwd(Quaternion((1.,0.,0.,0.)))', Vector((1.,0.,0.)))
|
||||
test('llRot2Fwd(Quaternion((0.,1.,0.,0.)))', Vector((-1.,0.,0.)))
|
||||
|
||||
Reference in New Issue
Block a user