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.
26 lines
540 B
Text
26 lines
540 B
Text
list lazy_list_set(list L, integer i, list v)
|
|
{
|
|
while ((L != []) < i)
|
|
L = L + 0;
|
|
return llListReplaceList(L, v, i, i);
|
|
}
|
|
|
|
default
|
|
{
|
|
state_entry()
|
|
{
|
|
list a;
|
|
a = lazy_list_set(a, 1, (list)0);
|
|
{
|
|
if (!~-(a != []))
|
|
jump J_autoGen00002;
|
|
jump J_autoGen00003;
|
|
@J_autoGen00002;
|
|
llOwnerSay("1");
|
|
jump J_autoGen00001;
|
|
@J_autoGen00003;
|
|
llOwnerSay("other");
|
|
@J_autoGen00001;
|
|
}
|
|
}
|
|
}
|