From 562e802575abc79598ed2ef58a837a146be644c4 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Thu, 16 Aug 2018 13:15:47 -0400 Subject: Fixing series data. Changes the min and max series to also contain the index to make plotting easier. Change-Id: Ifbb43658338d6389705e7f146fa1ca6e13c202ce Signed-off-by: mbeierl --- .../tests/utilities_tests/math_range_test.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'docker/storperf-master/tests') 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) -- cgit 1.2.3-korg