13 lines
320 B
Python
13 lines
320 B
Python
|
from prog import *
|
||
|
import unittest
|
||
|
|
||
|
class Tests(unittest.TestCase):
|
||
|
def test_part1(self):
|
||
|
self.assertEqual(result(get_input(sample = True)), 26397)
|
||
|
self.assertEqual(result(get_input()), 341823)
|
||
|
|
||
|
|
||
|
def test_part2(self):
|
||
|
self.assertEqual(result(get_input(sample = True), part = 2), 288957)
|
||
|
|