|
|
@ -36,6 +36,8 @@ class read_function(unittest.TestCase): |
|
|
|
self.assertEqual(simplify_easy_math_function("a", "42x"), False) |
|
|
|
def test_easy_function_number_as_function_return(self): |
|
|
|
self.assertEqual(simplify_easy_math_function("v", 42), 42) |
|
|
|
def test_easy_function_string_is_constant(self): |
|
|
|
self.assertEqual(simplify_easy_math_function("v", "42^(2)+1-3*4/3"), 1761) |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
unittest.main() |