use ii > 4 instead of 4 < ii

This commit is contained in:
Jan Petykiewicz 2024-07-29 17:56:43 -07:00
parent 31e52e20d6
commit f87dc7d771
3 changed files with 5 additions and 5 deletions

View File

@ -202,7 +202,7 @@ def test_file_1() -> None:
if ii < 3:
assert pp.y == 400 * (ii + 1), msg
elif 7 <= ii:
elif ii >= 7:
assert pp.y == 0, msg
if ii < 4 or ii == 5:
@ -214,7 +214,7 @@ def test_file_1() -> None:
assert pp.angle == 0, msg
elif ii in (5, 6):
assert pp.angle == 90, msg
elif 7 <= ii:
elif ii >= 7:
assert pp.angle == 270, msg
if ii < 7:

View File

@ -823,7 +823,7 @@ def test_file_4() -> None:
assert pp.x == [-300, 0, 0, 300, 700, 700, 700, 2000, 4000, 6000, 8000, 10000, 12000][ii], msg
assert pp.y == [400, 200, 400, 400, 400, 1400, 2400, 0, 0, 0, 0, 0, 0][ii], msg
if ii == 4 or 6 <= ii:
if ii == 4 or ii >= 6:
assert pp.flip, msg
else:
assert not pp.flip, msg
@ -892,7 +892,7 @@ def test_file_6() -> None:
assert pp.x == [-300, 0, 0, 300, 700, 700, 700, 2000, 4000, 6000, 8000, 10000, 12000][ii], msg
assert pp.y == [400, 400, 400, 400, 400, 1400, 2400, 0, 0, 0, 0, 0, 0][ii], msg
if ii == 4 or 6 <= ii:
if ii == 4 or ii >= 6:
assert pp.flip, msg
else:
assert not pp.flip, msg

View File

@ -209,7 +209,7 @@ def test_file_1() -> None:
if ii in (0, 4):
assert gg.delta_a == -20, msg
elif 8 <= ii:
elif ii >= 8:
assert gg.delta_a == 0, msg
else:
assert gg.delta_a == 20, msg