|
@ -34,6 +34,8 @@ class read_function(unittest.TestCase): |
|
|
|
|
|
|
|
|
def test_easy_function_wrong_type(self): |
|
|
def test_easy_function_wrong_type(self): |
|
|
self.assertEqual(simplify_easy_math_function("a", "42x"), False) |
|
|
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) |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |