summaryrefslogtreecommitdiff
path: root/python/testData/inspections/ChainedComparison5.py
blob: 7bd80dd74807791c627737357c09d3538f0b64e0 (plain)
1
2
3
4
5
mapsize = 35

def test(x, y):
  if <weak_warning descr="Simplify chained comparison">0 <= x < <caret>mapsize and y >= 0 and y < mapsize</weak_warning>:
    return 1