mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Forgot to add the test case for the previous commit
This commit is contained in:
parent
d6bf0c390e
commit
f3037df055
2 changed files with 31 additions and 0 deletions
12
unit_tests/regression.suite/issue-14.lsl
Normal file
12
unit_tests/regression.suite/issue-14.lsl
Normal file
|
@ -0,0 +1,12 @@
|
|||
list out(){
|
||||
integer n = 3;
|
||||
@continue;
|
||||
llOwnerSay((string)n);
|
||||
--n;
|
||||
if( !n )
|
||||
return [];
|
||||
jump continue;
|
||||
return [];
|
||||
}
|
||||
|
||||
default{state_entry(){llParticleSystem(out());}}
|
19
unit_tests/regression.suite/issue-14.out
Normal file
19
unit_tests/regression.suite/issue-14.out
Normal file
|
@ -0,0 +1,19 @@
|
|||
list out()
|
||||
{
|
||||
integer n = 3;
|
||||
@continue;
|
||||
llOwnerSay((string)n);
|
||||
--n;
|
||||
if (!n)
|
||||
return [];
|
||||
jump continue;
|
||||
return [];
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
llParticleSystem(out());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue