summaryrefslogtreecommitdiff
path: root/11/test.py
blob: b77bd4638eafcc6ca9f9f4c545f96dcaf316a8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/python

import unittest

import main



class ExamplesPart1(unittest.TestCase):
    def test_example1(self):
        old = "abcdefgh"
        new = "abcdffaa"
        self.assertEqual(main.solve_part1(old), new)

    def test_example2(self):
        old = "ghijklmn"
        new = "ghjaabcc"
        self.assertEqual(main.solve_part1(old), new)



if __name__ == "__main__":
    unittest.main()