aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/PupilAnalysis
diff options
context:
space:
mode:
authorThéo de la Hogue2023-05-30 13:34:44 +0200
committerThéo de la Hogue2023-05-30 13:34:44 +0200
commit2c296a5adc88d9fde36d6c8e24ca275a7088a8f9 (patch)
treeda87a530eb8b64355df90377d6abf06d6df07763 /src/argaze.test/PupilAnalysis
parentb1c5eaa9974d91263083ea457b65ad60c20cca85 (diff)
downloadargaze-2c296a5adc88d9fde36d6c8e24ca275a7088a8f9.zip
argaze-2c296a5adc88d9fde36d6c8e24ca275a7088a8f9.tar.gz
argaze-2c296a5adc88d9fde36d6c8e24ca275a7088a8f9.tar.bz2
argaze-2c296a5adc88d9fde36d6c8e24ca275a7088a8f9.tar.xz
Updating tests.
Diffstat (limited to 'src/argaze.test/PupilAnalysis')
-rw-r--r--src/argaze.test/PupilAnalysis/WorkloadIndex.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/argaze.test/PupilAnalysis/WorkloadIndex.py b/src/argaze.test/PupilAnalysis/WorkloadIndex.py
index dd735ba..fec32ef 100644
--- a/src/argaze.test/PupilAnalysis/WorkloadIndex.py
+++ b/src/argaze.test/PupilAnalysis/WorkloadIndex.py
@@ -40,13 +40,16 @@ class TestWorkloadIndexClass(unittest.TestCase):
# Check each workload index
ts_1, analysis_1 = ts_analysis.pop_first()
+ self.assertEqual(ts_1, 3)
self.assertTrue(math.isclose(analysis_1, 0.1, abs_tol=1e-2))
ts_2, analysis_2 = ts_analysis.pop_first()
+ self.assertEqual(ts_2, 6)
self.assertTrue(math.isclose(analysis_2, 0.2, abs_tol=1e-2))
ts_3, analysis_3 = ts_analysis.pop_first()
- self.assertTrue(math.isclose(analysis_3, 0.1, abs_tol=1e-2))
+ self.assertEqual(ts_3, 9)
+ self.assertTrue(math.isclose(analysis_3, -0.1, abs_tol=1e-2))
if __name__ == '__main__':