aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/GazeFeatures.py
diff options
context:
space:
mode:
authorThéo de la Hogue2024-03-12 15:31:55 +0100
committerThéo de la Hogue2024-03-12 15:31:55 +0100
commit182844cfbc1462c266245186f97f05986f0170ce (patch)
tree27f322e20ef5f20e3a5db8d454567add62df04e7 /src/argaze.test/GazeFeatures.py
parentaf7657659453b8cf19ce7be5447456c86b35d59c (diff)
downloadargaze-182844cfbc1462c266245186f97f05986f0170ce.zip
argaze-182844cfbc1462c266245186f97f05986f0170ce.tar.gz
argaze-182844cfbc1462c266245186f97f05986f0170ce.tar.bz2
argaze-182844cfbc1462c266245186f97f05986f0170ce.tar.xz
Fixing tests.
Diffstat (limited to 'src/argaze.test/GazeFeatures.py')
-rw-r--r--src/argaze.test/GazeFeatures.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/argaze.test/GazeFeatures.py b/src/argaze.test/GazeFeatures.py
index 2d052ab..11e7c24 100644
--- a/src/argaze.test/GazeFeatures.py
+++ b/src/argaze.test/GazeFeatures.py
@@ -141,16 +141,16 @@ class TestGazePositionClass(unittest.TestCase):
gaze_position_C = GazeFeatures.GazePosition((5, 0), precision=5)
gaze_position_D = GazeFeatures.GazePosition((4, 0), precision=5)
- self.assertFalse(gaze_position_A.overlap(gaze_position_B))
- self.assertTrue(gaze_position_A.overlap(gaze_position_C))
- self.assertFalse(gaze_position_A.overlap(gaze_position_C, both=True))
+ self.assertFalse(gaze_position_A.is_overlapping()(gaze_position_B))
+ self.assertTrue(gaze_position_A.is_overlapping()(gaze_position_C))
+ self.assertFalse(gaze_position_A.is_overlapping()(gaze_position_C, both=True))
- self.assertFalse(gaze_position_B.overlap(gaze_position_A))
- self.assertTrue(gaze_position_B.overlap(gaze_position_C))
- self.assertFalse(gaze_position_B.overlap(gaze_position_C, both=True))
+ self.assertFalse(gaze_position_B.is_overlapping()(gaze_position_A))
+ self.assertTrue(gaze_position_B.is_overlapping()(gaze_position_C))
+ self.assertFalse(gaze_position_B.is_overlapping()(gaze_position_C, both=True))
- self.assertFalse(gaze_position_C.overlap(gaze_position_A))
- self.assertFalse(gaze_position_C.overlap(gaze_position_B))
+ self.assertFalse(gaze_position_C.is_overlapping()(gaze_position_A))
+ self.assertFalse(gaze_position_C.is_overlapping()(gaze_position_B))
def test___repr__(self):
"""Test GazePosition string representation."""