#!/usr/bin/pythonimport unittest
import main
classExamplesPart1(unittest.TestCase):deftest_example1(self):
old ="abcdefgh"
new ="abcdffaa"
self.assertEqual(main.solve_part1(old), new)deftest_example2(self):
old ="ghijklmn"
new ="ghjaabcc"
self.assertEqual(main.solve_part1(old), new)if __name__ =="__main__":
unittest.main()