|
@ -11,6 +11,8 @@ class read_function(unittest.TestCase): |
|
|
self.assertEqual(is_string("42*e^x"), True) |
|
|
self.assertEqual(is_string("42*e^x"), True) |
|
|
def test_constant_isstring_false(self): |
|
|
def test_constant_isstring_false(self): |
|
|
self.assertEqual(is_string(42), False) |
|
|
self.assertEqual(is_string(42), False) |
|
|
|
|
|
def test_constant_isallowed_string_true(self): |
|
|
|
|
|
self.assertEqual(is_allowed_string("c", "42^(2)+1-3*4"), True) |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |