|
@ -7,6 +7,8 @@ class read_function(unittest.TestCase): |
|
|
self.assertEqual(read_constant("c", 42), 42) |
|
|
self.assertEqual(read_constant("c", 42), 42) |
|
|
def test_constant_no_c(self): |
|
|
def test_constant_no_c(self): |
|
|
self.assertEqual(read_constant("e", "42*e^x"), False) |
|
|
self.assertEqual(read_constant("e", "42*e^x"), False) |
|
|
|
|
|
def test_constant_isstring_true(self): |
|
|
|
|
|
self.assertEqual(is_string("42*e^x"), True) |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |