mirror of
https://github.com/RussellChamp/advent-of-code-2022.git
synced 2026-10-27 21:52:30 +00:00
20 lines
416 B
Python
20 lines
416 B
Python
import unittest
|
|||
|
|
import solve
|
||
|
|
|
||
|
|
class Day08TestMethods(unittest.TestCase):
|
||
|
|
def setUp(self):
|
||
|
|
pass
|
||
|
|
|
||
|
|
def test_score_row(self):
|
||
|
|
test_cases = [
|
||
|
|
[1, 5, [3]],
|
||
|
|
[1, 5, [5,2]],
|
||
|
|
[2, 5, [1,2]],
|
||
|
|
[2, 5, [3,5,3]],
|
||
|
|
[2, 5, [3,3]]
|
||
|
|
]
|
||
|
|
for [expected, height, row] in test_cases:
|
||
|
|
self.assertEqual(solve.score_row(height, row), expected)
|
||
|
|
|
||
|
|
if __name__ == '__main__':
|
||
|
|
unittest.main()
|