diff options
author | Mark Beierl <mark.beierl@emc.com> | 2016-08-24 15:30:15 -0400 |
---|---|---|
committer | Mark Beierl <mark.beierl@emc.com> | 2016-08-24 15:34:29 -0400 |
commit | 8e3587493d685745e08c97e25ec8b2b3a7bd3a00 (patch) | |
tree | f312218414bc3ad9b771d3a3722edd9aae7cabdd /tests | |
parent | aa20b986cebf031489f4280988b4574a9acbc647 (diff) |
Slope error
Test and fix for error in slope
STORPERF-74
Change-Id: I17a8e0e1e588deb875ecace85290f92167df1d5e
Signed-off-by: Mark Beierl <mark.beierl@emc.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utilities_tests/steady_state_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utilities_tests/steady_state_test.py b/tests/utilities_tests/steady_state_test.py index d80c60d..564c090 100644 --- a/tests/utilities_tests/steady_state_test.py +++ b/tests/utilities_tests/steady_state_test.py @@ -57,3 +57,9 @@ class SteadyStateTest(unittest.TestCase): data_series = [[-15, 0.43], [-16, 0.41], [-3, 0.45], [4, 0.42]] actual = SteadyState.steady_state(data_series) self.assertEqual(expected, actual) + + def test_negative_slope(self): + expected = False + data_series = [[1.3, 1], [1.2, 1], [1.1, 1.1], [1.0, 1.1]] + actual = SteadyState.steady_state(data_series) + self.assertEqual(expected, actual) |