blob: 965adefe145000ce36063dffd5d8c83f60f81c19 (
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
26
27
28
29
30
31
32
|
#!/usr/bin/python
import unittest
import main
class ExamplesPart1(unittest.TestCase):
def test_example1(self):
boxes = [(2, 3, 4)]
self.assertEqual(main.solve_part1(boxes), 58)
def test_example2(self):
boxes = [(1, 1, 10)]
self.assertEqual(main.solve_part1(boxes), 43)
class ExamplesPart2(unittest.TestCase):
def test_example1(self):
boxes = [(2, 3, 4)]
self.assertEqual(main.solve_part2(boxes), 34)
def test_example2(self):
boxes = [(1, 1, 10)]
self.assertEqual(main.solve_part2(boxes), 14)
if __name__ == "__main__":
unittest.main()
|