mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
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.
20 lines
927 B
Text
20 lines
927 B
Text
default
|
|
{
|
|
state_entry()
|
|
{
|
|
string a = llGetObjectName();
|
|
vector b = llGetPos();
|
|
float c = llGetMass();
|
|
llOwnerSay(llDumpList2String([a, b, c], "/"));
|
|
llOwnerSay(llDumpList2String([], llGetObjectName()));
|
|
llOwnerSay(llDumpList2String([1,2,3], a));
|
|
llOwnerSay(llDumpList2String([llGetObjectName()], a));
|
|
llOwnerSay(llDumpList2String([llGetObjectName(), llGetObjectName(), llGetObjectName()], a));
|
|
llOwnerSay(llDumpList2String([a, b, c, llGetObjectName()], a));
|
|
// TODO: This isn't properly optimized because the lists can't be merged:
|
|
llOwnerSay(llDumpList2String([a] + [b, c, a + a + a], a));
|
|
llOwnerSay(llDumpList2String([a, b, c, a + a + a], a));
|
|
llOwnerSay(llDumpList2String([llSetRegionPos(<1,1,1>)], a));
|
|
llOwnerSay(llDumpList2String([llSetRegionPos(<1,1,1>)], (string)llSetRegionPos(<1,1,1>)));
|
|
}
|
|
}
|