aboutsummaryrefslogtreecommitdiff
path: root/src/argaze.test/PupilAnalysis/WorkloadIndex.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/argaze.test/PupilAnalysis/WorkloadIndex.py')
-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__':