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.
21 lines
927 B
Plaintext
21 lines
927 B
Plaintext
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>)));
|
|
}
|
|
}
|