Skip to content

Commit 3c703c1

Browse files
committed
Increase test coverage
1 parent f01780e commit 3c703c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/functional/ext/code_style/cs_improve_conditionals.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ def f1(expr, node_cls, x, y, z):
3434
...
3535
elif x and (not y or not z): # [improve-conditionals]
3636
...
37+
elif not x or y < 0 or z <= 0: # [improve-conditionals]
38+
...
39+
elif not x or y > 0 or z >= 0: # [improve-conditionals]
40+
...

tests/functional/ext/code_style/cs_improve_conditionals.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ improve-conditionals:29:9:29:28:f1:Rewrite conditional expression to 'not (x and
33
improve-conditionals:31:9:31:28:f1:Rewrite conditional expression to 'not (x and y is z)':HIGH
44
improve-conditionals:33:9:33:29:f1:Rewrite conditional expression to 'x and y':HIGH
55
improve-conditionals:35:16:35:30:f1:Rewrite conditional expression to 'not (y and z)':HIGH
6+
improve-conditionals:37:9:37:33:f1:Rewrite conditional expression to 'not (x and y >= 0 and z > 0)':HIGH
7+
improve-conditionals:39:9:39:33:f1:Rewrite conditional expression to 'not (x and y <= 0 and z < 0)':HIGH

0 commit comments

Comments
 (0)