mirror of
https://github.com/donnemartin/interactive-coding-challenges.git
synced 2024-03-22 13:11:13 +08:00
20 lines
403 B
Python
20 lines
403 B
Python
import unittest
|
|
|
|
|
|
class TestFindDiff(unittest.TestCase):
|
|
|
|
def test_find_diff(self):
|
|
solution = Solution()
|
|
self.assertRaises(TypeError, solution.find_diff, None)
|
|
self.assertEqual(solution.find_diff('aaabbcdd', 'abdbacade'), 'e')
|
|
print('Success: test_find_diff')
|
|
|
|
|
|
def main():
|
|
test = TestFindDiff()
|
|
test.test_find_diff()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|