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()
|