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:
15
unit_tests/regression.suite/boolean-and.lsl
Normal file
15
unit_tests/regression.suite/boolean-and.lsl
Normal file
@@ -0,0 +1,15 @@
|
||||
default{timer(){
|
||||
string s = llGetObjectDesc();
|
||||
key k = llGenerateKey();
|
||||
integer i = llGetLinkNumber();
|
||||
|
||||
if (s == "A" && k != llGenerateKey() && !~llSubStringIndex(s, "B"))
|
||||
llDie();
|
||||
/* Chance for a future optimization - this is always false */
|
||||
if (i == 5 && i == 9 && llGetLinkNumber())
|
||||
llDie();
|
||||
if (i != 5 && i != 9 && llGetLinkNumber())
|
||||
llDie();
|
||||
if (1 & i == 5 && i == 7 && i == 9 && llGetLinkNumber())
|
||||
llDie();
|
||||
}}
|
||||
Reference in New Issue
Block a user