advent-of-code/2021/03/test.py
2023-08-02 11:46:44 +02:00

14 lines
393 B
Python

from prog import *
import unittest
class Tests(unittest.TestCase):
def test_input(self):
self.assertEqual(get_input(sample = True), [4, 30, 22, 23, 21, 15, 7, 28, 16, 25, 2, 10])
def test_part1(self):
self.assertEqual(result(get_input(sample = True)), 198)
def test_part2(self):
self.assertEqual(result(get_input(sample = True), part = 2), 230)