mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Add test cases that failed without the previous commit.
This commit is contained in:
parent
c483d5ea71
commit
716374eb83
1 changed files with 2 additions and 1 deletions
|
@ -225,6 +225,7 @@ class Test03_Optimizer(UnitTestCase):
|
||||||
def test_coverage(self):
|
def test_coverage(self):
|
||||||
p = self.parser.parse('''
|
p = self.parser.parse('''
|
||||||
float f=2+2;
|
float f=2+2;
|
||||||
|
float g = f;
|
||||||
string s = "1" "2";
|
string s = "1" "2";
|
||||||
list L = [(key)""];
|
list L = [(key)""];
|
||||||
default{timer(){
|
default{timer(){
|
||||||
|
@ -232,7 +233,7 @@ class Test03_Optimizer(UnitTestCase):
|
||||||
list a;
|
list a;
|
||||||
float f;
|
float f;
|
||||||
integer j = 3||4&&5|6^7&8.==9!=10.e+01f<11<=12>13.>=14<<15>>16==0&&3==
|
integer j = 3||4&&5|6^7&8.==9!=10.e+01f<11<=12>13.>=14<<15>>16==0&&3==
|
||||||
++f-f++-(llFloor(f)<<3);
|
++f-f++-(3 + llFloor(f)<<3 << 32) - 2 - 0;
|
||||||
integer k = 2 + (3 * 25 - 4)/2 % 9;
|
integer k = 2 + (3 * 25 - 4)/2 % 9;
|
||||||
a = 3; a += !3;
|
a = 3; a += !3;
|
||||||
f += 4; f += -4.3;
|
f += 4; f += -4.3;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue