This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations. See unit_tests/README.txt for more info.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
// 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")
|
|
]);
|
|
}
|
|
}
|