<filename>python/test_2020_15_2.py
import importlib
import unittest

solver = importlib.import_module('2020_15_2')

class Test2020Day15Part2(unittest.TestCase):

  def test_example1(self):
    self.assertEqual(solver.solve('0,3,6\n'), 175594)

  def test_example2(self):
    self.assertEqual(solver.solve('1,3,2\n'), 2578)

  def test_example3(self):
    self.assertEqual(solver.solve('2,1,3\n'), 3544142)

  def test_example4(self):
    self.assertEqual(solver.solve('1,2,3\n'), 261214)

  def test_example5(self):
    self.assertEqual(solver.solve('2,3,1\n'), 6895259)

  def test_example6(self):
    self.assertEqual(solver.solve('3,2,1\n'), 18)

  def test_example7(self):
    self.assertEqual(solver.solve('3,1,2\n'), 362)
