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:
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user