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

import unittest

import main



class Examples(unittest.TestCase):
    def test_example1(self):
        lines = [
            ".#.#.#",
            "...##.",
            "#....#",
            "..#...",
            "#.#..#",
            "####.."
        ]
        self.assertEqual(main.solve_partn(1, lines, 4),  4)
        self.assertEqual(main.solve_partn(2, lines, 5), 17)



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