From f87dc7d771693edf1dabaebb9a3744dd0877977c Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 29 Jul 2024 17:56:43 -0700 Subject: [PATCH] use ii > 4 instead of 4 < ii --- fatamorgana/test/test_files_placements.py | 4 ++-- fatamorgana/test/test_files_properties.py | 4 ++-- fatamorgana/test/test_files_trapezoids.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fatamorgana/test/test_files_placements.py b/fatamorgana/test/test_files_placements.py index 2a718c0..7c5c500 100644 --- a/fatamorgana/test/test_files_placements.py +++ b/fatamorgana/test/test_files_placements.py @@ -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: diff --git a/fatamorgana/test/test_files_properties.py b/fatamorgana/test/test_files_properties.py index 433ed54..7dab690 100644 --- a/fatamorgana/test/test_files_properties.py +++ b/fatamorgana/test/test_files_properties.py @@ -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 diff --git a/fatamorgana/test/test_files_trapezoids.py b/fatamorgana/test/test_files_trapezoids.py index 4f47332..e57b8f7 100644 --- a/fatamorgana/test/test_files_trapezoids.py +++ b/fatamorgana/test/test_files_trapezoids.py @@ -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