advent-of-code/2017-python/tests/day_14_tests.py

19 lines
381 B
Python
Raw Normal View History

2021-11-01 16:40:46 +01:00
import unittest
from solutions.day_14 import Solution
class Day14TestCase(unittest.TestCase):
def setUp(self):
self.solution = Solution()
def test_used_squares(self):
2025-05-06 20:14:58 +02:00
assert self.solution.solve("flqrgnkx") == 8108
2021-11-01 16:40:46 +01:00
def test_regions(self):
2025-05-06 20:14:58 +02:00
assert self.solution.solve_again("flqrgnkx") == 1242
2021-11-01 16:40:46 +01:00
2025-05-06 20:14:58 +02:00
if __name__ == "__main__":
2021-11-01 16:40:46 +01:00
unittest.main()