mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +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.
16 lines
755 B
Text
16 lines
755 B
Text
// SCR-295: LSO global list declarations with keys generate string entries
|
|
// It's apparently a consequence of SVC-1710 together with the fact that global
|
|
// lists reuse the values verbatim, just like type casting to list does.
|
|
|
|
// TODO: The optim. that'd allow using llGetListEntryType is not implemented.
|
|
// (When a list/vector/rot. variable is only read and not written, use the
|
|
// constant value to call the function, rather than the variable, but careful
|
|
// with llList2List etc.: ensure that the optimized result isn't bigger than
|
|
// the unoptimized input)
|
|
|
|
key k = TEXTURE_BLANK;
|
|
list L = [k,""];
|
|
default{timer(){
|
|
llOwnerSay((string)llGetListEntryType(L, 0));
|
|
llOwnerSay((string)llListFindList(L, (list)k)); // in LSO, this says TYPE_STRING
|
|
}}
|