summaryrefslogtreecommitdiffstats
path: root/docker/storperf-master/tests
diff options
context:
space:
mode:
Diffstat (limited to 'docker/storperf-master/tests')
-rw-r--r--docker/storperf-master/tests/utilities_tests/math_range_test.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/docker/storperf-master/tests/utilities_tests/math_range_test.py b/docker/storperf-master/tests/utilities_tests/math_range_test.py
index 9208fb7..bbbbcf9 100644
--- a/docker/storperf-master/tests/utilities_tests/math_range_test.py
+++ b/docker/storperf-master/tests/utilities_tests/math_range_test.py
@@ -120,23 +120,13 @@ class MathRangeTest(unittest.TestCase):
self.assertEqual(expected, actual)
def test_min_series(self):
- expected = [427.7333333333333,
- 427.7333333333333,
- 427.7333333333333,
- 427.7333333333333,
- 427.7333333333333,
- 427.7333333333333]
- data_series = [5, 351, 847, 2, 1985, 18]
+ expected = [[1, 5.6], [2, 5.6], [3, 5.6], [4, 5.6]]
+ data_series = [[1, 6], [2, 5], [3, 7], [4, 10]]
actual = Range.min_series(data_series)
self.assertEqual(expected, actual)
def test_max_series(self):
- expected = [641.5999999999999,
- 641.5999999999999,
- 641.5999999999999,
- 641.5999999999999,
- 641.5999999999999,
- 641.5999999999999]
- data_series = [5, 351, 847, 2, 1985, 18]
+ expected = [[1, 8.4], [2, 8.4], [3, 8.4], [4, 8.4]]
+ data_series = [[1, 6], [2, 5], [3, 7], [4, 10]]
actual = Range.max_series(data_series)
self.assertEqual(expected, actual)