LSL-PyOptimizer/unit_tests/regression.suite/non-computable.lsl
Sei Lisa 1867dc78e7 Add the new test suite.
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.
2019-01-04 20:27:36 +01:00

31 lines
1.1 KiB
Text

// Functions that can't be computed at compile time
default
{
timer()
{
llSetPrimitiveParams( // we need a function that causes side effects,
// so that it isn't optimized out
[ llFrand(1)
, llFrand(1.1754943508222875e-38)
, llGenerateKey()
, llAvatarOnLinkSitTarget(2)
, llEdgeOfWorld(<1,1,1>, <1,1,1>)
, llGetAgentInfo(TEXTURE_BLANK)
, llGetAgentLanguage(TEXTURE_BLANK)
, llGetAgentList(AGENT_LIST_PARCEL, [])
, llGetAgentSize(TEXTURE_DEFAULT)
, llGetAlpha(0)
, llGetAnimation(TEXTURE_BLANK)
, llGetAnimationList(TEXTURE_BLANK)
, llGetBoundingBox(TEXTURE_BLANK)
, llGetColor(0)
, llGetDisplayName(TEXTURE_BLANK)
, llGetEnv("estate_name")
, llXorBase64Strings("++++", "?")
, llXorBase64StringsCorrect("++++", "?")
, llXorBase64("++++", "?")
, llBase64ToInteger("ABC")
, llAbs(-2147483648)
]);
}
}