LSL-PyOptimizer/unit_tests/regression.suite/computable.lsl
Sei Lisa d6162dfcf2 Remove llGetEnv tests from tests; don't generate list in list
llGetEnv() is not computable now, so remove it from the computable functions unit test.

The test generated lists inside a list, and after the llGetEnv() change, that caused a weird side effect that hasn't been investigated (see test result of previous commit). To be on the safe side, take all list-generating results out of the list, into their own llSetPrimitiveParams call.
2023-02-03 21:47:37 +01:00

32 lines
1.1 KiB
Text

// Functions for which certain parameters produce predictable results.
default
{
timer()
{
llSetPrimitiveParams( // won't be optimized out because it has side effects
[ llFrand(0.0)
, llFrand(-0.0)
, llFrand(1.4e-45)
, llFrand(-1.4e-45)
, llFrand(1.1754942e-38) // denormal - loses 1 bit precision
, llFrand(1e40)
, llFrand(-1e40)
, llFrand(1e40*0)
, llFrand(-1e40*0)
, llCloud(<0,1,2>)
, llAvatarOnLinkSitTarget(256)
, llEdgeOfWorld(<0,1,2>,<0,0,1>)
, llGetAgentInfo(".")
, llGetAgentLanguage("")
, llGetAgentSize(NULL_KEY)
, llGetAlpha(9)
, llGetAnimation("0")
, llGetColor(9)
, llGetDisplayName("")
, llGetStatus(STATUS_CAST_SHADOWS)
]);
llSetPrimitiveParams(llGetAgentList(3, []));
llSetPrimitiveParams(llGetAnimationList(""));
llSetPrimitiveParams(llGetBoundingBox(""));
}
}