From 742532d48e3b33751e0bb7a1e0425b051562aef3 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 14 Jan 2017 03:56:33 +0100 Subject: [PATCH] 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. --- testfuncs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testfuncs.py b/testfuncs.py index 1374b29..54399a7 100644 --- a/testfuncs.py +++ b/testfuncs.py @@ -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.)))