From f3b473ed83b1d69cc3350ede717c2e17e0c7fe17 Mon Sep 17 00:00:00 2001 From: fdai7763 Date: Tue, 23 Jan 2024 20:19:02 +0100 Subject: [PATCH] added test for returning false if math-function is no string --- src/test/py/test_read_math_function.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/py/test_read_math_function.py b/src/test/py/test_read_math_function.py index 7ab1836..c30d2ad 100644 --- a/src/test/py/test_read_math_function.py +++ b/src/test/py/test_read_math_function.py @@ -9,6 +9,8 @@ class read_function(unittest.TestCase): self.assertEqual(read_constant("e", "42*e^x"), False) def test_constant_isstring_true(self): self.assertEqual(is_string("42*e^x"), True) + def test_constant_isstring_false(self): + self.assertEqual(is_string(42), False) if __name__ == '__main__': unittest.main()