Add forgotten unit tests for the identifier substitution fiasco

This commit is contained in:
Sei Lisa 2019-01-11 21:18:25 +01:00
parent 0877f8c7e6
commit 352f410d12
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,25 @@
default
{
state_entry()
{
list L1 = [1, 2, 3, 4, 5];
integer N = llGetListLength(L1);
integer i;
for (i = 0; i < N; i++)
{
llOwnerSay(llList2String(L1, i));
L1 = llDeleteSubList(L1, -1, -1);
}
// Swap two variables
integer u = llGetLinkNumber();
integer v = llGetNumberOfPrims();
if (llFrand(1) < 0.5)
{
integer temp = u;
u = v;
v = temp;
}
llOwnerSay((string)u+(string)v);
}
}