mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Add the new test suite.
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.
This commit is contained in:
parent
7fbde0269c
commit
1867dc78e7
547 changed files with 11680 additions and 0 deletions
9
unit_tests/coverage.suite/aux-funcs.lsl
Normal file
9
unit_tests/coverage.suite/aux-funcs.lsl
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Cover auxiliary functions.
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llOwnerSay(llStringToBase64(llList2Key([TEXTURE_BLANK],0)));
|
||||
llOwnerSay(llStringToBase64(llList2Key([(key)TEXTURE_BLANK],0)));
|
||||
}
|
||||
}
|
8
unit_tests/coverage.suite/aux-funcs.out
Normal file
8
unit_tests/coverage.suite/aux-funcs.out
Normal file
|
@ -0,0 +1,8 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llOwnerSay("NTc0OGRlY2MtZjYyOS00NjFjLTlhMzYtYTM1YTIyMWZlMjFm");
|
||||
llOwnerSay("NTc0OGRlY2MtZjYyOS00NjFjLTlhMzYtYTM1YTIyMWZlMjFm");
|
||||
}
|
||||
}
|
9
unit_tests/coverage.suite/declare-zero.lsl
Normal file
9
unit_tests/coverage.suite/declare-zero.lsl
Normal file
|
@ -0,0 +1,9 @@
|
|||
integer a = 0;
|
||||
float f = 0.0;
|
||||
vector v = <0.,0.,0.>;
|
||||
rotation r = <0.,0.,0.,1.>;
|
||||
key k = "";
|
||||
string s = "";
|
||||
list l = [];
|
||||
|
||||
default{state_entry(){}}
|
14
unit_tests/coverage.suite/declare-zero.out
Normal file
14
unit_tests/coverage.suite/declare-zero.out
Normal file
|
@ -0,0 +1,14 @@
|
|||
integer a;
|
||||
float f = 0;
|
||||
vector v = <0, 0, 0>;
|
||||
rotation r = <0, 0, 0, 1>;
|
||||
key k = "";
|
||||
string s = "";
|
||||
list l = [];
|
||||
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/declare-zero.run
Normal file
1
unit_tests/coverage.suite/declare-zero.run
Normal file
|
@ -0,0 +1 @@
|
|||
./main.py - -O -dcr
|
1
unit_tests/coverage.suite/existing-filename.lsl
Normal file
1
unit_tests/coverage.suite/existing-filename.lsl
Normal file
|
@ -0,0 +1 @@
|
|||
default{no_sensor(){}}
|
6
unit_tests/coverage.suite/existing-filename.out
Normal file
6
unit_tests/coverage.suite/existing-filename.out
Normal file
|
@ -0,0 +1,6 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/existing-filename.run
Normal file
1
unit_tests/coverage.suite/existing-filename.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py unit_tests/coverage.suite/existing-filename.lsl
|
18
unit_tests/coverage.suite/fndata-change.lsl
Normal file
18
unit_tests/coverage.suite/fndata-change.lsl
Normal file
|
@ -0,0 +1,18 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llModPow(5, 7, 3);
|
||||
llCos(5);
|
||||
}
|
||||
|
||||
// this one should be kept, as it's not marked as SEF in the test data
|
||||
no_sensor()
|
||||
{
|
||||
}
|
||||
|
||||
// this one should disappear
|
||||
touch(integer k)
|
||||
{
|
||||
}
|
||||
}
|
11
unit_tests/coverage.suite/fndata-change.out
Normal file
11
unit_tests/coverage.suite/fndata-change.out
Normal file
|
@ -0,0 +1,11 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
llCos(5);
|
||||
}
|
||||
|
||||
no_sensor()
|
||||
{
|
||||
}
|
||||
}
|
2
unit_tests/coverage.suite/fndata-change.run
Normal file
2
unit_tests/coverage.suite/fndata-change.run
Normal file
|
@ -0,0 +1,2 @@
|
|||
main.py -b unit_tests/builtins-coverage-5.txt \
|
||||
-L unit_tests/fndata-coverage-5.txt -
|
16
unit_tests/coverage.suite/formatting.lsl
Normal file
16
unit_tests/coverage.suite/formatting.lsl
Normal file
|
@ -0,0 +1,16 @@
|
|||
e(){}
|
||||
integer a;
|
||||
integer b;
|
||||
f(){}
|
||||
g(){}
|
||||
integer c;
|
||||
integer d;
|
||||
h(){}
|
||||
default
|
||||
{
|
||||
timer() {}
|
||||
touch(integer n) {}
|
||||
touch_start(integer n) {}
|
||||
touch_end(integer n) {}
|
||||
}
|
||||
state s2{timer(){}}
|
47
unit_tests/coverage.suite/formatting.out
Normal file
47
unit_tests/coverage.suite/formatting.out
Normal file
|
@ -0,0 +1,47 @@
|
|||
e()
|
||||
{
|
||||
}
|
||||
|
||||
integer a;
|
||||
integer b;
|
||||
|
||||
f()
|
||||
{
|
||||
}
|
||||
|
||||
g()
|
||||
{
|
||||
}
|
||||
|
||||
integer c;
|
||||
integer d;
|
||||
|
||||
h()
|
||||
{
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
}
|
||||
|
||||
touch(integer n)
|
||||
{
|
||||
}
|
||||
|
||||
touch_start(integer n)
|
||||
{
|
||||
}
|
||||
|
||||
touch_end(integer n)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
state s2
|
||||
{
|
||||
timer()
|
||||
{
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/formatting.run
Normal file
1
unit_tests/coverage.suite/formatting.run
Normal file
|
@ -0,0 +1 @@
|
|||
./main.py --prettify -O clear -
|
2
unit_tests/coverage.suite/help-options.err
Normal file
2
unit_tests/coverage.suite/help-options.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
REGEX
|
||||
ProgName -O -DCR,\+BreakCont scriptname\.lsl
|
1
unit_tests/coverage.suite/help-options.run
Normal file
1
unit_tests/coverage.suite/help-options.run
Normal file
|
@ -0,0 +1 @@
|
|||
ProgName -O help
|
9
unit_tests/coverage.suite/include-header.lsl
Normal file
9
unit_tests/coverage.suite/include-header.lsl
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Test inclusion of headers and invalidation of comments
|
||||
/*
|
||||
|
||||
blah
|
||||
/|*
|
||||
/||*
|
||||
|
||||
*/
|
||||
default{timer(){}}
|
24
unit_tests/coverage.suite/include-header.out
Normal file
24
unit_tests/coverage.suite/include-header.out
Normal file
|
@ -0,0 +1,24 @@
|
|||
REGEX
|
||||
//start_unprocessed_text
|
||||
/\*// Test inclusion of headers and invalidation of comments
|
||||
/\*
|
||||
|
||||
blah
|
||||
/\|\|\*
|
||||
/\|\|\|\*
|
||||
|
||||
\*\|/
|
||||
default\{timer\(\)\{\}\}
|
||||
\*/
|
||||
//end_unprocessed_text
|
||||
//nfo_preprocessor_version 0
|
||||
//program_version LSL PyOptimizer .* - Sei Lisa
|
||||
//mono
|
||||
|
||||
// Generated on 20.*Z
|
||||
default
|
||||
\{
|
||||
timer\(\)
|
||||
\{
|
||||
\}
|
||||
\}
|
1
unit_tests/coverage.suite/include-header.run
Normal file
1
unit_tests/coverage.suite/include-header.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -T -H --avname=Sei\ Lisa --shortname=script.lsl -
|
49
unit_tests/coverage.suite/inline-1.lsl
Normal file
49
unit_tests/coverage.suite/inline-1.lsl
Normal file
|
@ -0,0 +1,49 @@
|
|||
f1() inline
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
|
||||
f2(integer f2param) inline
|
||||
{
|
||||
llOwnerSay("f2:" + (string)f2param);
|
||||
}
|
||||
|
||||
vector f3(integer f3p1, string f3p2) inline
|
||||
{
|
||||
f2(f3p1);
|
||||
integer f3p1; // test shading the parameter
|
||||
{
|
||||
jump x;
|
||||
llOwnerSay("f3:" + (string)f3p1 + f3p2);
|
||||
}
|
||||
@x;
|
||||
if (f3p2 != "") return <1,1,1>;
|
||||
do ; while (f4());
|
||||
return <0,0,0>;
|
||||
}
|
||||
|
||||
integer f4() inline
|
||||
{
|
||||
return llGetLinkNumber();
|
||||
}
|
||||
|
||||
say(string s) inline
|
||||
{
|
||||
llOwnerSay(s);
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
f1();
|
||||
if (1) f1();
|
||||
f2(3);
|
||||
if (f3(4, "x") == ZERO_VECTOR) llOwnerSay("ok");
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
say("hi");
|
||||
}
|
||||
}
|
71
unit_tests/coverage.suite/inline-1.out
Normal file
71
unit_tests/coverage.suite/inline-1.out
Normal file
|
@ -0,0 +1,71 @@
|
|||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
if (1)
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
{
|
||||
integer f2param = 3;
|
||||
{
|
||||
llOwnerSay("f2:" + (string)f2param);
|
||||
}
|
||||
}
|
||||
vector ___ret__00001;
|
||||
{
|
||||
integer f3p1 = 4;
|
||||
string f3p2 = "x";
|
||||
{
|
||||
{
|
||||
integer f2param = f3p1;
|
||||
{
|
||||
llOwnerSay("f2:" + (string)f2param);
|
||||
}
|
||||
}
|
||||
integer f3p1;
|
||||
{
|
||||
jump ___lbl__00005;
|
||||
llOwnerSay("f3:" + (string)f3p1 + f3p2);
|
||||
}
|
||||
@___lbl__00005;
|
||||
if (f3p2 != "")
|
||||
{
|
||||
___ret__00001 = <1, 1, 1>;
|
||||
jump ___rtl__00004;
|
||||
}
|
||||
integer ___ret__00002;
|
||||
{
|
||||
{
|
||||
___ret__00002 = llGetLinkNumber();
|
||||
jump ___rtl__00007;
|
||||
}
|
||||
}
|
||||
@___rtl__00007;
|
||||
do
|
||||
;
|
||||
while (___ret__00002);
|
||||
{
|
||||
___ret__00001 = <0, 0, 0>;
|
||||
jump ___rtl__00004;
|
||||
}
|
||||
}
|
||||
}
|
||||
@___rtl__00004;
|
||||
if (___ret__00001 == <0., 0., 0.>)
|
||||
llOwnerSay("ok");
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
{
|
||||
string s = "hi";
|
||||
{
|
||||
llOwnerSay(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/inline-1.run
Normal file
1
unit_tests/coverage.suite/inline-1.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -y -O clear,inline -
|
1
unit_tests/coverage.suite/inline-2.err
Normal file
1
unit_tests/coverage.suite/inline-2.err
Normal file
|
@ -0,0 +1 @@
|
|||
EExpansionLoop: Loop found in expansion of inline functions
|
19
unit_tests/coverage.suite/inline-2.lsl
Normal file
19
unit_tests/coverage.suite/inline-2.lsl
Normal file
|
@ -0,0 +1,19 @@
|
|||
f1() inline
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
f2();
|
||||
}
|
||||
|
||||
f2() inline
|
||||
{
|
||||
llOwnerSay("f2");
|
||||
f1();
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
f1();
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/inline-2.run
Normal file
1
unit_tests/coverage.suite/inline-2.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,inline -
|
11
unit_tests/coverage.suite/inline-3.lsl
Normal file
11
unit_tests/coverage.suite/inline-3.lsl
Normal file
|
@ -0,0 +1,11 @@
|
|||
// Test inline, by Sei Lisa
|
||||
say(string s) inline
|
||||
{
|
||||
llOwnerSay(s);
|
||||
}
|
||||
|
||||
default{timer(){
|
||||
|
||||
say("hey");
|
||||
|
||||
}}
|
11
unit_tests/coverage.suite/inline-3.out
Normal file
11
unit_tests/coverage.suite/inline-3.out
Normal file
|
@ -0,0 +1,11 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
{
|
||||
{
|
||||
llOwnerSay("hey");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
49
unit_tests/coverage.suite/inline-4.lsl
Normal file
49
unit_tests/coverage.suite/inline-4.lsl
Normal file
|
@ -0,0 +1,49 @@
|
|||
f1() inline
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
|
||||
f2(integer f2param) inline
|
||||
{
|
||||
llOwnerSay("f2:" + (string)f2param);
|
||||
}
|
||||
|
||||
vector f3(integer f3p1, string f3p2) inline
|
||||
{
|
||||
f2(f3p1);
|
||||
integer f3p1; // test shading the parameter
|
||||
{
|
||||
jump x;
|
||||
llOwnerSay("f3:" + (string)f3p1 + f3p2);
|
||||
}
|
||||
@x;
|
||||
if (f3p2 != "") return <1,1,1>;
|
||||
do ; while (f4());
|
||||
return <0,0,0>;
|
||||
}
|
||||
|
||||
integer f4() inline
|
||||
{
|
||||
return llGetLinkNumber();
|
||||
}
|
||||
|
||||
say(string s) inline
|
||||
{
|
||||
llOwnerSay(s);
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
f1();
|
||||
if (1) f1();
|
||||
f2(3);
|
||||
if (f3(4, "x") == ZERO_VECTOR) llOwnerSay("ok");
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
say("hi");
|
||||
}
|
||||
}
|
62
unit_tests/coverage.suite/inline-4.out
Normal file
62
unit_tests/coverage.suite/inline-4.out
Normal file
|
@ -0,0 +1,62 @@
|
|||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
{
|
||||
llOwnerSay("f1");
|
||||
}
|
||||
{
|
||||
{
|
||||
llOwnerSay("f2:" + "3");
|
||||
}
|
||||
}
|
||||
vector ___ret__00001 = <((float)0), ((float)0), ((float)0)>;
|
||||
{
|
||||
{
|
||||
{
|
||||
{
|
||||
llOwnerSay("f2:" + "4");
|
||||
}
|
||||
}
|
||||
{
|
||||
jump ___lbl__00005;
|
||||
}
|
||||
@___lbl__00005;
|
||||
{
|
||||
___ret__00001 = <((float)1), ((float)1), ((float)1)>;
|
||||
jump ___rtl__00004;
|
||||
}
|
||||
integer ___ret__00002;
|
||||
{
|
||||
{
|
||||
___ret__00002 = llGetLinkNumber();
|
||||
jump ___rtl__00007;
|
||||
}
|
||||
}
|
||||
@___rtl__00007;
|
||||
do
|
||||
;
|
||||
while (___ret__00002);
|
||||
{
|
||||
___ret__00001 = <((float)0), ((float)0), ((float)0)>;
|
||||
jump ___rtl__00004;
|
||||
}
|
||||
}
|
||||
}
|
||||
@___rtl__00004;
|
||||
if (___ret__00001 == <((float)0), ((float)0), ((float)0)>)
|
||||
llOwnerSay("ok");
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
{
|
||||
{
|
||||
llOwnerSay("hi");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
unit_tests/coverage.suite/invalid-file.err
Normal file
2
unit_tests/coverage.suite/invalid-file.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
REGEX
|
||||
IOError: (?:\[Errno 21\] Is a directory|\[Errno 13\] Permission denied): 'unit_tests/coverage.suite/actually-a-dir.d'
|
1
unit_tests/coverage.suite/invalid-file.run
Normal file
1
unit_tests/coverage.suite/invalid-file.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py unit_tests/coverage.suite/actually-a-dir.d
|
3
unit_tests/coverage.suite/invalid-option.err
Normal file
3
unit_tests/coverage.suite/invalid-option.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
REGEX
|
||||
|
||||
Error: option --invalid-option not recognized
|
1
unit_tests/coverage.suite/invalid-option.run
Normal file
1
unit_tests/coverage.suite/invalid-option.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py --invalid-option
|
3
unit_tests/coverage.suite/linedir.err
Normal file
3
unit_tests/coverage.suite/linedir.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
default{timer(){x;}}
|
||||
^
|
||||
(Line 10 char 17): ERROR in "somefile.lsl": Name not defined within scope
|
4
unit_tests/coverage.suite/linedir.lsl
Normal file
4
unit_tests/coverage.suite/linedir.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
#line 1 "<stdin>"
|
||||
#line 1 "somefile.lsl"
|
||||
#line 10
|
||||
default{timer(){x;}}
|
1
unit_tests/coverage.suite/linedir.run
Normal file
1
unit_tests/coverage.suite/linedir.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O processpre -
|
9
unit_tests/coverage.suite/lsloptimizer.lsl
Normal file
9
unit_tests/coverage.suite/lsloptimizer.lsl
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Cover optimizer.Cast() using a call in lsldeadcode.
|
||||
default{timer(){
|
||||
|
||||
vector v;
|
||||
float f = llGetNumberOfSides() + v.x = 3;
|
||||
|
||||
llOwnerSay((string)[f]);
|
||||
|
||||
}}
|
8
unit_tests/coverage.suite/lsloptimizer.out
Normal file
8
unit_tests/coverage.suite/lsloptimizer.out
Normal file
|
@ -0,0 +1,8 @@
|
|||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
float f = ((float)3) + llGetNumberOfSides();
|
||||
llOwnerSay((string)((list)f));
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lsloptimizer.run
Normal file
1
unit_tests/coverage.suite/lsloptimizer.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -
|
2
unit_tests/coverage.suite/lsloutput-1.err
Normal file
2
unit_tests/coverage.suite/lsloutput-1.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
WARNING: Illegal combo: Key type inside a global list
|
||||
WARNING: A string contains a tab. Tabs are expanded to four spaces by the viewer when copy-pasting the code (disable this warning by disabling the 'warntabs' option).
|
37
unit_tests/coverage.suite/lsloutput-1.lsl
Normal file
37
unit_tests/coverage.suite/lsloutput-1.lsl
Normal file
|
@ -0,0 +1,37 @@
|
|||
list L = [llList2Key([llUnescapeURL("%09")], 0)];
|
||||
float f1 = -0.; // kept the same
|
||||
float f2 = -3.; // transformed to -3
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
float f0 = -15.5; // transformed to (float)-15.5
|
||||
vector v = <f0, f1, f2>;
|
||||
rotation r = <f0, f1, f2, f0>;
|
||||
integer i;
|
||||
while (llFrand(2) > 1)
|
||||
{
|
||||
llOwnerSay((string)(f0 + f1 + f2 + i));
|
||||
llSetPrimitiveParams(L);
|
||||
llSetPrimitiveParams(L);
|
||||
L = llGetPhysicsMaterial();
|
||||
f0 = llList2Float(L, 0);
|
||||
f1 = llList2Float(L, 1);
|
||||
f2 = llList2Float(L, 2);
|
||||
i = llList2Integer(L, i++);
|
||||
i = llList2Integer(L, i--);
|
||||
v = <f1, 0, 0>;
|
||||
r = <f1, 0, 0, 0>f1>;
|
||||
llSetRegionPos(v);
|
||||
llSetLocalRot(r);
|
||||
print(r.s);
|
||||
++i; --i;
|
||||
if (i)
|
||||
i >>= 1;
|
||||
else if (i > llFrand(3))
|
||||
return;
|
||||
L[2] = (integer)L[3];
|
||||
}
|
||||
}
|
||||
}
|
45
unit_tests/coverage.suite/lsloutput-1.out
Normal file
45
unit_tests/coverage.suite/lsloutput-1.out
Normal file
|
@ -0,0 +1,45 @@
|
|||
list lazy_list_set(list L, integer i, list v)
|
||||
{
|
||||
while ((L != []) < i)
|
||||
L = L + 0;
|
||||
return llListReplaceList(L, v, i, i);
|
||||
}
|
||||
|
||||
list L = [(key)" "];
|
||||
float f1 = -0.;
|
||||
float f2 = -3;
|
||||
|
||||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
float f0 = ((float)-15.5);
|
||||
vector v = <f0, f1, f2>;
|
||||
rotation r = <f0, f1, f2, f0>;
|
||||
integer i;
|
||||
while (1 < llFrand(2))
|
||||
{
|
||||
llOwnerSay((string)(f0 + f1 + f2 + i));
|
||||
llSetPrimitiveParams(L);
|
||||
llSetPrimitiveParams(L);
|
||||
L = llGetPhysicsMaterial();
|
||||
f0 = llList2Float(L, 0);
|
||||
f1 = llList2Float(L, 1);
|
||||
f2 = llList2Float(L, 2);
|
||||
i = llList2Integer(L, i++);
|
||||
i = llList2Integer(L, i--);
|
||||
v = <f1, 0, 0>;
|
||||
r = <f1, 0, 0, (f1 < 0)>;
|
||||
llSetRegionPos(v);
|
||||
llSetLocalRot(r);
|
||||
print(r.s);
|
||||
++i;
|
||||
--i;
|
||||
if (i)
|
||||
i = i >> 1;
|
||||
else if (llFrand(3) < i)
|
||||
return;
|
||||
L = lazy_list_set(L, 2, (list)llList2Integer(L, 3));
|
||||
}
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lsloutput-1.run
Normal file
1
unit_tests/coverage.suite/lsloutput-1.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O foldtabs,lazylists -
|
8
unit_tests/coverage.suite/lsloutput-2.lsl
Normal file
8
unit_tests/coverage.suite/lsloutput-2.lsl
Normal file
|
@ -0,0 +1,8 @@
|
|||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
list L = llGetPhysicsMaterial();
|
||||
for(L[1];llFrand(2)<1;);
|
||||
}
|
||||
}
|
9
unit_tests/coverage.suite/lsloutput-2.out
Normal file
9
unit_tests/coverage.suite/lsloutput-2.out
Normal file
|
@ -0,0 +1,9 @@
|
|||
default
|
||||
{
|
||||
state_entry()
|
||||
{
|
||||
list L = llGetPhysicsMaterial();
|
||||
for ((MISSING TYPE)L[1]; llFrand(2) < 1; )
|
||||
;
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lsloutput-2.run
Normal file
1
unit_tests/coverage.suite/lsloutput-2.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O -dcr,-constfold,lazylists -
|
1
unit_tests/coverage.suite/lsloutput-2.skp
Normal file
1
unit_tests/coverage.suite/lsloutput-2.skp
Normal file
|
@ -0,0 +1 @@
|
|||
This generates a runtime error now
|
56
unit_tests/coverage.suite/lslparse-1.lsl
Normal file
56
unit_tests/coverage.suite/lslparse-1.lsl
Normal file
|
@ -0,0 +1,56 @@
|
|||
// Coverage tests of normal parsing
|
||||
f(){f();} // triggers FindSymbolPartial's last lines except the very last
|
||||
integer g(){if(1)return 1;else return 1;}
|
||||
integer T = TRUE;
|
||||
vector V = <1,-2,TRUE>;
|
||||
quaternion Q = <PI, 1.0, 0, 1>;
|
||||
list L = [];
|
||||
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
integer i;
|
||||
float f;
|
||||
vector v;
|
||||
// Parse_vector_rotation_tail
|
||||
<0,0,0.1>1>;
|
||||
// Parse_unary_postfix_expression
|
||||
ZERO_VECTOR;
|
||||
i = 1;
|
||||
i += i;
|
||||
f += i;
|
||||
i -= 1;
|
||||
i *= f;
|
||||
i /= 1;
|
||||
i %= 1;
|
||||
v *= i;
|
||||
++v.x;
|
||||
|
||||
// Parse_bitxor
|
||||
2^2;
|
||||
|
||||
// Parse_expression
|
||||
1&&1;
|
||||
|
||||
// Parse_statement
|
||||
@J;
|
||||
1;
|
||||
jump J;
|
||||
|
||||
// Scanner coverage
|
||||
quaternion q;
|
||||
1.3f;
|
||||
0x0;
|
||||
0x00000100000000;
|
||||
4294967296;
|
||||
42949672950;
|
||||
L"\t\"";
|
||||
|
||||
1 // Not a string delimiter because it has \ at EOL:
|
||||
" \
|
||||
// Not a string delimiter because it's the last double quote
|
||||
// in the file:
|
||||
";
|
||||
}
|
||||
}
|
51
unit_tests/coverage.suite/lslparse-1.out
Normal file
51
unit_tests/coverage.suite/lslparse-1.out
Normal file
|
@ -0,0 +1,51 @@
|
|||
f()
|
||||
{
|
||||
f();
|
||||
}
|
||||
|
||||
integer g()
|
||||
{
|
||||
if (1)
|
||||
return 1;
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
integer T = 1;
|
||||
vector V = <1, -2, 1>;
|
||||
rotation Q = <3.1415927, 1., 0, 1>;
|
||||
list L = [];
|
||||
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
integer i;
|
||||
float f;
|
||||
vector v;
|
||||
<0, 0, (0.1 > 1)>;
|
||||
<0., 0., 0.>;
|
||||
i = 1;
|
||||
i += i;
|
||||
f += i;
|
||||
i -= 1;
|
||||
i *= f;
|
||||
i /= 1;
|
||||
i %= 1;
|
||||
v *= i;
|
||||
++v.x;
|
||||
2 ^ 2;
|
||||
1 && 1;
|
||||
@J;
|
||||
1;
|
||||
jump J;
|
||||
rotation q;
|
||||
1.3;
|
||||
0;
|
||||
-1;
|
||||
-1;
|
||||
-1;
|
||||
"\" \"";
|
||||
1;
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-1.run
Normal file
1
unit_tests/coverage.suite/lslparse-1.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -y -O clear -
|
57
unit_tests/coverage.suite/lslparse-2.lsl
Normal file
57
unit_tests/coverage.suite/lslparse-2.lsl
Normal file
|
@ -0,0 +1,57 @@
|
|||
// Test the extra features of the parser, to complete coverage.
|
||||
string S = "a" "b"; // juxtaposition in globals
|
||||
f(){}
|
||||
integer f(){return 1;}
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
// String juxtaposition coverage
|
||||
"a" "b";
|
||||
|
||||
// Explicit cast and extended cast coverage
|
||||
integer i;
|
||||
float f;
|
||||
list L;
|
||||
f += i;
|
||||
L += (integer)(float)i;
|
||||
i = ~(integer)-2*3;
|
||||
i = ~(integer)-2.*3;
|
||||
i = ~(integer)-i*3;
|
||||
|
||||
// AllowKeyConcat coverage
|
||||
""+(key)"";
|
||||
(key)""+"";
|
||||
|
||||
// Parse_statement with duplicate labels.
|
||||
@J;
|
||||
|
||||
// does_something() coverage
|
||||
switch(1)
|
||||
{
|
||||
{1;}
|
||||
}
|
||||
|
||||
// loops, switch and break/continue
|
||||
while (1) {break;for (;2;) {continue;break;} continue;}
|
||||
do { continue; break 1; } while (1);
|
||||
jump x;
|
||||
while (1) @x;
|
||||
jump y;
|
||||
for (;1;) @y;
|
||||
jump z;
|
||||
do @z; while (0);
|
||||
|
||||
switch(1.0)
|
||||
{
|
||||
case 1: {1;}
|
||||
}
|
||||
switch(1)
|
||||
{
|
||||
default {}
|
||||
}
|
||||
|
||||
while (1) continue;
|
||||
while (1) while (1) while (1) continue 3;
|
||||
}
|
||||
}
|
93
unit_tests/coverage.suite/lslparse-2.out
Normal file
93
unit_tests/coverage.suite/lslparse-2.out
Normal file
|
@ -0,0 +1,93 @@
|
|||
string S = "ab";
|
||||
|
||||
integer f()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
timer()
|
||||
{
|
||||
"ab";
|
||||
integer i;
|
||||
float f;
|
||||
list L;
|
||||
f += (float)i;
|
||||
L += (list)((integer)((float)i));
|
||||
i = (~(integer)-2) * 3;
|
||||
i = (~(integer)-2.) * 3;
|
||||
i = (~(integer)(-i)) * 3;
|
||||
"" + (string)((key)"");
|
||||
(string)((key)"") + "";
|
||||
@J;
|
||||
{
|
||||
jump J_autoGen00001;
|
||||
{
|
||||
1;
|
||||
}
|
||||
@J_autoGen00001;
|
||||
}
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
jump J_autoGen00002;
|
||||
{
|
||||
for (; 2; )
|
||||
{
|
||||
jump J_autoGen00005;
|
||||
jump J_autoGen00004;
|
||||
@J_autoGen00005;
|
||||
}
|
||||
@J_autoGen00004;
|
||||
}
|
||||
jump J_autoGen00003;
|
||||
@J_autoGen00003;
|
||||
}
|
||||
@J_autoGen00002;
|
||||
}
|
||||
{
|
||||
do
|
||||
{
|
||||
jump J_autoGen00007;
|
||||
jump J_autoGen00006;
|
||||
@J_autoGen00007;
|
||||
}
|
||||
while (1);
|
||||
@J_autoGen00006;
|
||||
}
|
||||
jump x;
|
||||
while (1)
|
||||
@x;
|
||||
jump y;
|
||||
for (; 1; )
|
||||
@y;
|
||||
jump z;
|
||||
do
|
||||
@z;
|
||||
while (0);
|
||||
{
|
||||
if (1. == (float)1)
|
||||
jump J_autoGen00015;
|
||||
jump J_autoGen00014;
|
||||
@J_autoGen00015;
|
||||
{
|
||||
1;
|
||||
}
|
||||
@J_autoGen00014;
|
||||
}
|
||||
{
|
||||
{
|
||||
}
|
||||
}
|
||||
while (1)
|
||||
;
|
||||
while (1)
|
||||
{
|
||||
while (1)
|
||||
while (1)
|
||||
jump J_autoGen00022;
|
||||
@J_autoGen00022;
|
||||
}
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-2.run
Normal file
1
unit_tests/coverage.suite/lslparse-2.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,allowmultistrings,enableswitch,explicitcast,extendedassignment,extendedtypecast,allowkeyconcat,duplabels,processpre,breakcont,funcoverride -
|
3
unit_tests/coverage.suite/lslparse-3.lsl
Normal file
3
unit_tests/coverage.suite/lslparse-3.lsl
Normal file
|
@ -0,0 +1,3 @@
|
|||
default{ev(){
|
||||
list L = LIST_CONSTANT;
|
||||
}}
|
7
unit_tests/coverage.suite/lslparse-3.out
Normal file
7
unit_tests/coverage.suite/lslparse-3.out
Normal file
|
@ -0,0 +1,7 @@
|
|||
default
|
||||
{
|
||||
ev()
|
||||
{
|
||||
list L = [];
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-3.run
Normal file
1
unit_tests/coverage.suite/lslparse-3.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -b unit_tests/builtins-coverage-1.txt -L unit_tests/fndata-coverage-3.txt -O -dcr -
|
25
unit_tests/coverage.suite/lslparse-4.err
Normal file
25
unit_tests/coverage.suite/lslparse-4.err
Normal file
|
@ -0,0 +1,25 @@
|
|||
WARNING: Key constants not supported in unit_tests/builtins-coverage-4.txt, line 1: const key a="\t"
|
||||
WARNING: Event at line 3 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: ev
|
||||
WARNING: Function at line 5 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: x
|
||||
WARNING: Invalid type in unit_tests/builtins-coverage-4.txt, line 6: blah
|
||||
WARNING: Invalid type in unit_tests/builtins-coverage-4.txt, line 7: unknown
|
||||
WARNING: Syntax error in unit_tests/builtins-coverage-4.txt, line 8
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 9: const vector a = <4,5,3,2>
|
||||
WARNING: Global at line 10 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: a
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 10: const vector a = <4,5,3,2
|
||||
WARNING: Global at line 11 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: a
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 11: const vector a = <x,4,3>
|
||||
WARNING: Global at line 12 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: a
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 12: const vector a = <4,x,3>
|
||||
WARNING: Global at line 13 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: a
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 13: const vector a = <3,4,x>
|
||||
WARNING: Global at line 14 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: a
|
||||
WARNING: Invalid vector/rotation syntax in unit_tests/builtins-coverage-4.txt line 14: const rotation a = <3,4,4,x>
|
||||
WARNING: Invalid string in unit_tests/builtins-coverage-4.txt line 17: const string v="
|
||||
WARNING: Global at line 18 was already defined in unit_tests/builtins-coverage-4.txt, overwriting: q
|
||||
WARNING: Invalid type in unit_tests/builtins-coverage-4.txt, line 19: unknown
|
||||
WARNING: Non-empty list constants not supported in unit_tests/builtins-coverage-4.txt, line 20: const list L = [1]
|
||||
WARNING: Invalid list value in unit_tests/builtins-coverage-4.txt, line 21: const list L2 = [
|
||||
|
||||
^
|
||||
(Line 1 char 1): ERROR: Unexpected EOF
|
0
unit_tests/coverage.suite/lslparse-4.lsl
Normal file
0
unit_tests/coverage.suite/lslparse-4.lsl
Normal file
1
unit_tests/coverage.suite/lslparse-4.run
Normal file
1
unit_tests/coverage.suite/lslparse-4.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -b unit_tests/builtins-coverage-4.txt -L unit_tests/fndata-coverage-4.txt -O -dcr,-processpre -
|
3
unit_tests/coverage.suite/lslparse-err-1.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-1.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
integer a;
|
||||
^
|
||||
(Line 2 char 10): ERROR: Name previously declared within scope
|
2
unit_tests/coverage.suite/lslparse-err-1.lsl
Normal file
2
unit_tests/coverage.suite/lslparse-err-1.lsl
Normal file
|
@ -0,0 +1,2 @@
|
|||
integer a;
|
||||
integer a;
|
1
unit_tests/coverage.suite/lslparse-err-1.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-1.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear - -y
|
3
unit_tests/coverage.suite/lslparse-err-10.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-10.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
default: ;
|
||||
^
|
||||
(Line 2 char 5): ERROR: 'default' used outside a 'switch' statement
|
3
unit_tests/coverage.suite/lslparse-err-10.lsl
Normal file
3
unit_tests/coverage.suite/lslparse-err-10.lsl
Normal file
|
@ -0,0 +1,3 @@
|
|||
x(){
|
||||
default: ;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-10.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-10.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-11.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-11.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
case 1: ;
|
||||
^
|
||||
(Line 3 char 3): ERROR: 'case' used outside a 'switch' statement
|
4
unit_tests/coverage.suite/lslparse-err-11.lsl
Normal file
4
unit_tests/coverage.suite/lslparse-err-11.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
x()
|
||||
{
|
||||
case 1: ;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-11.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-11.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-12.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-12.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
{case 1: ;}
|
||||
^
|
||||
(Line 5 char 10): ERROR: 'case' label only allowed at the main 'switch' block
|
7
unit_tests/coverage.suite/lslparse-err-12.lsl
Normal file
7
unit_tests/coverage.suite/lslparse-err-12.lsl
Normal file
|
@ -0,0 +1,7 @@
|
|||
x()
|
||||
{
|
||||
switch(1)
|
||||
{
|
||||
{case 1: ;}
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-12.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-12.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-13.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-13.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
{default:;}
|
||||
^
|
||||
(Line 5 char 10): ERROR: 'default' label only allowed at the main 'switch' block
|
7
unit_tests/coverage.suite/lslparse-err-13.lsl
Normal file
7
unit_tests/coverage.suite/lslparse-err-13.lsl
Normal file
|
@ -0,0 +1,7 @@
|
|||
x()
|
||||
{
|
||||
switch(1)
|
||||
{
|
||||
{default:;}
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-13.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-13.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-14.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-14.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
}
|
||||
^
|
||||
(Line 8 char 1): ERROR: multiple 'default' labels inside 'switch' statement
|
8
unit_tests/coverage.suite/lslparse-err-14.lsl
Normal file
8
unit_tests/coverage.suite/lslparse-err-14.lsl
Normal file
|
@ -0,0 +1,8 @@
|
|||
x()
|
||||
{
|
||||
switch(1)
|
||||
{
|
||||
default: ;;
|
||||
default: ;;
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-14.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-14.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-15.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-15.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
}
|
||||
^
|
||||
(Line 7 char 1): ERROR: Missing 'default:' label inside 'switch' statement; disable option 'errmissingdefault' to disable this error.
|
7
unit_tests/coverage.suite/lslparse-err-15.lsl
Normal file
7
unit_tests/coverage.suite/lslparse-err-15.lsl
Normal file
|
@ -0,0 +1,7 @@
|
|||
x()
|
||||
{
|
||||
switch(1)
|
||||
{
|
||||
case 1: ;;
|
||||
}
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-15.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-15.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch,errmissingdefault -
|
3
unit_tests/coverage.suite/lslparse-err-16.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-16.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
break;
|
||||
^
|
||||
(Line 3 char 5): ERROR: 'break' used outside a switch
|
4
unit_tests/coverage.suite/lslparse-err-16.lsl
Normal file
4
unit_tests/coverage.suite/lslparse-err-16.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
x()
|
||||
{
|
||||
break;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-16.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-16.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,enableswitch -
|
3
unit_tests/coverage.suite/lslparse-err-17.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-17.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
break;
|
||||
^
|
||||
(Line 3 char 5): ERROR: 'break' used outside a loop
|
4
unit_tests/coverage.suite/lslparse-err-17.lsl
Normal file
4
unit_tests/coverage.suite/lslparse-err-17.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
x()
|
||||
{
|
||||
break;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-17.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-17.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,breakcont -
|
3
unit_tests/coverage.suite/lslparse-err-18.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-18.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
continue;
|
||||
^
|
||||
(Line 3 char 5): ERROR: 'continue' used outside a loop
|
4
unit_tests/coverage.suite/lslparse-err-18.lsl
Normal file
4
unit_tests/coverage.suite/lslparse-err-18.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
x()
|
||||
{
|
||||
continue;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-18.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-18.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,breakcont -
|
3
unit_tests/coverage.suite/lslparse-err-19.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-19.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define a \
|
||||
^
|
||||
(Line 1 char 1): ERROR: Preprocessor directive can't end in backslash. Activate the preprocessor or put everything in the same line.
|
3
unit_tests/coverage.suite/lslparse-err-19.lsl
Normal file
3
unit_tests/coverage.suite/lslparse-err-19.lsl
Normal file
|
@ -0,0 +1,3 @@
|
|||
#define a \
|
||||
|
||||
x(){}
|
1
unit_tests/coverage.suite/lslparse-err-19.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-19.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear,processpre -
|
3
unit_tests/coverage.suite/lslparse-err-2.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-2.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
return 0;
|
||||
^
|
||||
(Line 2 char 8): ERROR: Return statement type doesn't match function return type
|
3
unit_tests/coverage.suite/lslparse-err-2.lsl
Normal file
3
unit_tests/coverage.suite/lslparse-err-2.lsl
Normal file
|
@ -0,0 +1,3 @@
|
|||
x(){
|
||||
return 0;
|
||||
}
|
1
unit_tests/coverage.suite/lslparse-err-2.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-2.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear -
|
3
unit_tests/coverage.suite/lslparse-err-20.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-20.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
f(){k;}
|
||||
^
|
||||
(Line 1 char 5): ERROR: Name not defined within scope
|
1
unit_tests/coverage.suite/lslparse-err-20.lsl
Normal file
1
unit_tests/coverage.suite/lslparse-err-20.lsl
Normal file
|
@ -0,0 +1 @@
|
|||
f(){k;}
|
1
unit_tests/coverage.suite/lslparse-err-20.run
Normal file
1
unit_tests/coverage.suite/lslparse-err-20.run
Normal file
|
@ -0,0 +1 @@
|
|||
main.py -O clear -
|
3
unit_tests/coverage.suite/lslparse-err-21.err
Normal file
3
unit_tests/coverage.suite/lslparse-err-21.err
Normal file
|
@ -0,0 +1,3 @@
|
|||
llOwnerSay(3);
|
||||
^
|
||||
(Line 3 char 17): ERROR: Function call mismatches type or number of arguments
|
4
unit_tests/coverage.suite/lslparse-err-21.lsl
Normal file
4
unit_tests/coverage.suite/lslparse-err-21.lsl
Normal file
|
@ -0,0 +1,4 @@
|
|||
x()
|
||||
{
|
||||
llOwnerSay(3);
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue