|
|
@ -21,6 +21,8 @@ class read_function(unittest.TestCase): |
|
|
|
self.assertEqual(calculate_string("42^(2)+1-3*4/3"), 1761) |
|
|
|
def test_constant_calculate_string_decision(self): |
|
|
|
self.assertEqual(read_constant("c", "42^(2)+1-3*4/3"), 1761) |
|
|
|
def test_constant_string_not_allowed_decision(self): |
|
|
|
self.assertEqual(read_constant("c", "42^(2)+1-3*4/3x"), False) |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
unittest.main() |