<filename>python/test_2020_12_1.py<gh_stars>0
import importlib
import unittest

solution = importlib.import_module('2020_12_1')

class Test2020Day12Part1(unittest.TestCase):

  def test_example1(self):
    input = (
        'F10\n'
        'N3\n'
        'F7\n'
        'R90\n'
        'F11\n'
    )
    self.assertEqual(solution.run(input), 25)

<filename>python/test_2020_12_1.py<gh_stars>0
import importlib
import unittest

solution = importlib.import_module('2020_12_1')

class Test2020Day12Part1(unittest.TestCase):

  def test_example1(self):
    input = (
        'F10\n'
        'N3\n'
        'F7\n'
        'R90\n'
        'F11\n'
    )
    self.assertEqual(solution.run(input), 25)
