day08 solution

This commit is contained in:
RussellChamp committed 2022-12-09 10:45:07 -05:00
1 parent 6107f01523
commit 66bcee4230
3 files changed
+117 -1

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
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()