advent-of-code/2018-python/tests/day_05_tests.py

19 lines
426 B
Python
Raw Normal View History

2021-11-01 16:40:46 +01:00
import unittest
from solutions.day_05 import Solution
class Day05TestCase(unittest.TestCase):
def setUp(self):
self.solution = Solution()
def test_react_polymer(self):
assert self.solution.solve('dabAcCaCBAcCcaDA') == 10
def test_reduce_and_choose_most_efficient_polymer(self):
assert self.solution.solve_again('dabAcCaCBAcCcaDA') == 4
if __name__ == '__main__':
unittest.main()