LSL-PyOptimizer/unit_tests/regression.suite/computable.lsl
Sei Lisa bc992e6182 LL change: the status of STATUS_DIE_AT_* is returned
As of Second Life Server 2022-09-09.574921, STATUS_DIE_AT_EDGE and STATUS_DIE_AT_NO_ENTRY return their corresponding settings rather than always FALSE.

Regression/coverage tests are clearly lacking in this area, as the change didn't trigger any test breakage, therefore add some unit tests.
2022-09-15 01:09:12 +02:00

34 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("")
, llGetAgentList(3, [])
, llGetAgentSize(NULL_KEY)
, llGetAlpha(9)
, llGetAnimation("0")
, llGetAnimationList("")
, llGetBoundingBox("")
, llGetColor(9)
, llGetDisplayName("")
, llGetEnv("")
, llGetEnv("yadda")
, llGetStatus(STATUS_CAST_SHADOWS)
]);
}
}