mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08: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
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue