summaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests/math_slope_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utilities_tests/math_slope_test.py')
-rw-r--r--tests/utilities_tests/math_slope_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/utilities_tests/math_slope_test.py b/tests/utilities_tests/math_slope_test.py
index 6c05aa4..24d5cd7 100644
--- a/tests/utilities_tests/math_slope_test.py
+++ b/tests/utilities_tests/math_slope_test.py
@@ -65,3 +65,8 @@ class MathSlopeTest(unittest.TestCase):
expected = 1.5
actual = Slope.slope([[0.0, 0], [1, 1], [2, 3]])
self.assertEqual(expected, actual)
+
+ def test_infinte_slope(self):
+ expected = None
+ actual = Slope.slope([[1480623510, 1295.87], [1480623520, 1380.79]])
+ self.assertEqual(expected, actual)